Commit e9ea5785 authored by Clement Ho's avatar Clement Ho

Add updateUrl to issuable textarea

parent 76904a28
...@@ -128,6 +128,9 @@ export default { ...@@ -128,6 +128,9 @@ export default {
hasUpdated() { hasUpdated() {
return !!this.state.updatedAt; return !!this.state.updatedAt;
}, },
updateUrl() {
return `${this.endpoint}.json`;
},
}, },
components: { components: {
descriptionComponent, descriptionComponent,
...@@ -251,6 +254,7 @@ export default { ...@@ -251,6 +254,7 @@ export default {
:updated-at="state.updatedAt" :updated-at="state.updatedAt"
:task-status="state.taskStatus" :task-status="state.taskStatus"
:issuable-type="issuableType" :issuable-type="issuableType"
:update-url="updateUrl"
/> />
<edited-component <edited-component
v-if="hasUpdated" v-if="hasUpdated"
......
...@@ -27,6 +27,11 @@ ...@@ -27,6 +27,11 @@
required: false, required: false,
default: 'issue', default: 'issue',
}, },
updateUrl: {
type: String,
required: false,
default: null,
},
}, },
data() { data() {
return { return {
...@@ -100,7 +105,9 @@ ...@@ -100,7 +105,9 @@
<textarea <textarea
class="hidden js-task-list-field" class="hidden js-task-list-field"
v-if="descriptionText" v-if="descriptionText"
v-model="descriptionText"> v-model="descriptionText"
:data-update-url="updateUrl"
>
</textarea> </textarea>
</div> </div>
</template> </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