fix: Properly handle adding new tags through multiselect

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-11-13 15:54:20 +01:00
parent bb51988ddb
commit 488cdbcd93
3 changed files with 12 additions and 22 deletions

View File

@@ -172,13 +172,14 @@ export default {
},
async addLabelToBoardAndCard(name) {
await this.$store.dispatch('addLabelToCurrentBoardAndCard', {
const newLabel = await this.$store.dispatch('addLabelToCurrentBoardAndCard', {
card: this.copiedCard,
newLabel: {
title: name,
color: this.randomColor(),
},
})
this.copiedCard.labels.push(newLabel)
},
removeLabelFromCard(removedLabel) {