From a9d52d7e7a070aa1ea55b246965677beca27c411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 23 Jun 2020 14:08:50 +0200 Subject: [PATCH] Fix saving card description after toggling checkboxes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/card/CardSidebar.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 82486f6ac..94e1f92c6 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -423,7 +423,8 @@ export default { } return match }) - this.updateDescription(updatedDescription) + this.$set(this.copiedCard, 'description', updatedDescription) + this.$store.dispatch('updateCardDesc', this.copiedCard) } }, updateRelativeTimestamps() { @@ -446,7 +447,7 @@ export default { delete this.copiedCard.descriptionLastEdit this.descriptionSaving = false }, - updateDescription(text) { + updateDescription() { this.copiedCard.descriptionLastEdit = Date.now() clearTimeout(this.descriptionSaveTimeout) this.descriptionSaveTimeout = setTimeout(async() => {