diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-18 14:44:27 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-18 14:44:27 +0300 |
commit | b8647134d926659b1629e9a58ce042a5ffdf4250 (patch) | |
tree | 3aabc707ecdc28c8fdea331b8ef3675cbeda2814 /app/assets/javascripts/issue_show/components/fields | |
parent | 907dd68e0a18e995dc5772c9bc8117aa150edc25 (diff) | |
parent | f5675666a11ff296e27b6dbdf0f789242fcd1b7f (diff) |
Merge branch 'issue-edit-inline' into issue-edit-inline-move-project
[ci skip]
Diffstat (limited to 'app/assets/javascripts/issue_show/components/fields')
-rw-r--r-- | app/assets/javascripts/issue_show/components/fields/confidential_checkbox.vue | 23 | ||||
-rw-r--r-- | app/assets/javascripts/issue_show/components/fields/description.vue | 5 |
2 files changed, 27 insertions, 1 deletions
diff --git a/app/assets/javascripts/issue_show/components/fields/confidential_checkbox.vue b/app/assets/javascripts/issue_show/components/fields/confidential_checkbox.vue new file mode 100644 index 00000000000..a0ff08e9111 --- /dev/null +++ b/app/assets/javascripts/issue_show/components/fields/confidential_checkbox.vue @@ -0,0 +1,23 @@ +<script> + export default { + props: { + formState: { + type: Object, + required: true, + }, + }, + }; +</script> + +<template> + <fieldset class="checkbox"> + <label for="issue-confidential"> + <input + type="checkbox" + value="1" + id="issue-confidential" + v-model="formState.confidential" /> + This issue is confidential and should only be visible to team members with at least Reporter access. + </label> + </fieldset> +</template> diff --git a/app/assets/javascripts/issue_show/components/fields/description.vue b/app/assets/javascripts/issue_show/components/fields/description.vue index b4c31811a0b..35b1ea6ff2b 100644 --- a/app/assets/javascripts/issue_show/components/fields/description.vue +++ b/app/assets/javascripts/issue_show/components/fields/description.vue @@ -20,6 +20,9 @@ components: { markdownField, }, + mounted() { + this.$refs.textarea.focus(); + }, }; </script> @@ -39,7 +42,7 @@ data-supports-slash-commands="false" aria-label="Description" v-model="formState.description" - ref="textatea" + ref="textarea" slot="textarea"> </textarea> </markdown-field> |