watcher readded

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-08-20 11:23:43 +02:00
parent c0a9597877
commit 0de1c581e8

View File

@@ -138,12 +138,15 @@ export default {
} }
}, },
watch: { watch: {
currentCard() { 'currentCard': {
this.copiedCard = JSON.parse(JSON.stringify(this.currentCard)) immediate: true,
this.allLabels = this.currentCard.labels handler() {
this.assignedUsers = this.currentCard.assignedUsers.map((item) => item.participant) this.copiedCard = JSON.parse(JSON.stringify(this.currentCard))
this.desc = this.currentCard.description this.allLabels = this.currentCard.labels
this.updateRelativeTimestamps() this.assignedUsers = this.currentCard.assignedUsers.map((item) => item.participant)
this.desc = this.currentCard.description
this.updateRelativeTimestamps()
}
}, },
desc() { desc() {