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

Fixed old iid update

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