diff options
Diffstat (limited to 'app/assets/javascripts/work_items/components/work_item_labels.vue')
-rw-r--r-- | app/assets/javascripts/work_items/components/work_item_labels.vue | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/assets/javascripts/work_items/components/work_item_labels.vue b/app/assets/javascripts/work_items/components/work_item_labels.vue index 574ac5f0f5d..015c86ba043 100644 --- a/app/assets/javascripts/work_items/components/work_item_labels.vue +++ b/app/assets/javascripts/work_items/components/work_item_labels.vue @@ -43,21 +43,18 @@ export default { LabelItem, }, mixins: [Tracking.mixin()], + inject: ['fullPath'], props: { workItemId: { type: String, required: true, }, - canUpdate: { - type: Boolean, - required: true, - }, - fullPath: { + workItemIid: { type: String, required: true, }, - queryVariables: { - type: Object, + canUpdate: { + type: Boolean, required: true, }, }, @@ -76,13 +73,16 @@ export default { workItem: { query: workItemByIidQuery, variables() { - return this.queryVariables; + return { + fullPath: this.fullPath, + iid: this.workItemIid, + }; }, update(data) { return data.workspace.workItems.nodes[0]; }, skip() { - return !this.queryVariables.iid; + return !this.workItemIid; }, error() { this.$emit('error', i18n.fetchError); |