Commit 9f13d025 authored by NataliaTepluhina's avatar NataliaTepluhina Committed by Florie Guibert

Fixed old iid update

parent 83681ba7
...@@ -122,13 +122,16 @@ export default { ...@@ -122,13 +122,16 @@ export default {
if (newVal) { if (newVal) {
this.$refs.dropdown.show(); this.$refs.dropdown.show();
this.isDirty = false; this.isDirty = false;
this.localSelectedLabels = this.selectedLabels;
} else { } else {
this.$refs.dropdown.hide(); this.$refs.dropdown.hide();
this.setLabels(); this.setLabels();
} }
}, },
selectedLabels(newVal) { selectedLabels(newVal) {
this.localSelectedLabels = newVal; if (!this.isDirty) {
this.localSelectedLabels = newVal;
}
}, },
}, },
created() { created() {
......
...@@ -106,7 +106,6 @@ export default { ...@@ -106,7 +106,6 @@ export default {
issuableLabels: [], issuableLabels: [],
labelsSelectInProgress: false, labelsSelectInProgress: false,
oldIid: null, oldIid: null,
isEditing: false,
}; };
}, },
computed: { computed: {
...@@ -138,11 +137,7 @@ export default { ...@@ -138,11 +137,7 @@ export default {
}, },
watch: { watch: {
iid(_, oldVal) { iid(_, oldVal) {
if (this.isEditing) { this.oldIid = oldVal;
this.oldIid = oldVal;
} else {
this.oldIid = null;
}
}, },
}, },
methods: { methods: {
...@@ -259,8 +254,7 @@ export default { ...@@ -259,8 +254,7 @@ export default {
:title="__('Labels')" :title="__('Labels')"
:loading="isLoading" :loading="isLoading"
:can-edit="allowLabelEdit" :can-edit="allowLabelEdit"
@open="isEditing = true" @open="oldIid = null"
@close="isEditing = false"
> >
<template #collapsed> <template #collapsed>
<dropdown-value <dropdown-value
......
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