Commit e9ea5785 authored by Clement Ho's avatar Clement Ho

Add updateUrl to issuable textarea

parent 76904a28
......@@ -128,6 +128,9 @@ export default {
hasUpdated() {
return !!this.state.updatedAt;
},
updateUrl() {
return `${this.endpoint}.json`;
},
},
components: {
descriptionComponent,
......@@ -251,6 +254,7 @@ export default {
:updated-at="state.updatedAt"
:task-status="state.taskStatus"
:issuable-type="issuableType"
:update-url="updateUrl"
/>
<edited-component
v-if="hasUpdated"
......
......@@ -27,6 +27,11 @@
required: false,
default: 'issue',
},
updateUrl: {
type: String,
required: false,
default: null,
},
},
data() {
return {
......@@ -100,7 +105,9 @@
<textarea
class="hidden js-task-list-field"
v-if="descriptionText"
v-model="descriptionText">
v-model="descriptionText"
:data-update-url="updateUrl"
>
</textarea>
</div>
</template>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment