Unify mutations to modify card properties and move to async actions

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-03-07 10:57:54 +01:00
parent d577288ec8
commit e69abd9be5
2 changed files with 39 additions and 83 deletions

View File

@@ -178,7 +178,7 @@ export default {
},
finishedEdit(card) {
if (this.copiedCard.title !== card.title) {
this.$store.dispatch('updateCard', this.copiedCard)
this.$store.dispatch('updateCardTitle', this.copiedCard)
}
this.editing = false
},