2017-05-12 14:52:45 +00:00
|
|
|
<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>
|
2017-05-12 14:59:45 +00:00
|
|
|
<label for="issue-description">
|
|
|
|
Description
|
|
|
|
</label>
|
2017-05-12 14:52:45 +00:00
|
|
|
<markdown-field
|
|
|
|
:markdown-preview-url="markdownPreviewUrl">
|
|
|
|
<textarea
|
2017-05-12 14:59:45 +00:00
|
|
|
id="issue-description"
|
2017-05-12 14:52:45 +00:00
|
|
|
class="note-textarea js-gfm-input js-autosize markdown-area"
|
|
|
|
data-supports-slash-commands="false"
|
2017-05-12 14:59:45 +00:00
|
|
|
aria-label="Description"
|
2017-05-12 14:52:45 +00:00
|
|
|
v-model="state.description"
|
|
|
|
ref="textatea"
|
|
|
|
slot="textarea">
|
|
|
|
</textarea>
|
|
|
|
</markdown-field>
|
|
|
|
</div>
|
|
|
|
</template>
|