diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-12 17:52:45 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-15 14:15:56 +0300 |
commit | b5b5b4af0c390a9246e0ef6051b95af1c5e40297 (patch) | |
tree | fec0ebf3e71492921c85ea81aacb9f6130525f30 /app/assets/javascripts/issue_show/components/fields | |
parent | b1affe07a1ff0b7f10cdc94b91dfea97d92b015c (diff) |
Added description field to inline edit form
[ci skip]
Diffstat (limited to 'app/assets/javascripts/issue_show/components/fields')
-rw-r--r-- | app/assets/javascripts/issue_show/components/fields/description.vue | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/app/assets/javascripts/issue_show/components/fields/description.vue b/app/assets/javascripts/issue_show/components/fields/description.vue new file mode 100644 index 00000000000..d131c0d75ea --- /dev/null +++ b/app/assets/javascripts/issue_show/components/fields/description.vue @@ -0,0 +1,40 @@ +<script> + /* global Flash */ + import markdownField from '../../../vue_shared/components/markdown/field.vue'; + + export default { + props: { + store: { + type: Object, + required: true, + }, + markdownPreviewUrl: { + type: String, + required: true, + }, + }, + data() { + return { + state: this.store.formState, + }; + }, + components: { + markdownField, + }, + }; +</script> + +<template> + <div> + <markdown-field + :markdown-preview-url="markdownPreviewUrl"> + <textarea + class="note-textarea js-gfm-input js-autosize markdown-area" + data-supports-slash-commands="false" + v-model="state.description" + ref="textatea" + slot="textarea"> + </textarea> + </markdown-field> + </div> +</template> |