diff --git a/src/components/tasks/TaskDetailView.vue b/src/components/tasks/TaskDetailView.vue index 0f36bdb1..0ea807b3 100644 --- a/src/components/tasks/TaskDetailView.vue +++ b/src/components/tasks/TaskDetailView.vue @@ -150,7 +150,7 @@ Labels - + diff --git a/src/components/tasks/edit-task.vue b/src/components/tasks/edit-task.vue index b5d71067..cd55e6a9 100644 --- a/src/components/tasks/edit-task.vue +++ b/src/components/tasks/edit-task.vue @@ -121,7 +121,7 @@
- +
diff --git a/src/components/tasks/reusable/editLabels.vue b/src/components/tasks/reusable/editLabels.vue index 122571cf..dc370627 100644 --- a/src/components/tasks/reusable/editLabels.vue +++ b/src/components/tasks/reusable/editLabels.vue @@ -46,7 +46,7 @@ export default { name: 'edit-labels', props: { - startLabels: { + value: { default: () => [], type: Array, }, @@ -69,14 +69,14 @@ multiselect, }, watch: { - startLabels(newLabels) { + value(newLabels) { this.labels = newLabels } }, created() { this.labelService = new LabelService() this.labelTaskService = new LabelTaskService() - this.labels = this.startLabels + this.labels = this.value }, methods: { findLabel(query) { @@ -112,6 +112,7 @@ this.labelTaskService.create(labelTask) .then(() => { this.success({message: 'The label was successfully added.'}, this) + this.$emit('input', this.labels) }) .catch(e => { this.error(e, this) @@ -128,6 +129,7 @@ } } this.success({message: 'The label was successfully removed.'}, this) + this.$emit('input', this.labels) }) .catch(e => { this.error(e, this)