From a34c3b0667ec691c9f14fc1fff198bc07753d22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20R=C3=B6hrl?= Date: Tue, 9 Feb 2021 10:07:26 +0100 Subject: [PATCH] fix desc save bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Röhrl --- src/components/card/CardSidebarTabDetails.vue | 8 ++++---- src/components/card/Description.vue | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/card/CardSidebarTabDetails.vue b/src/components/card/CardSidebarTabDetails.vue index a049f39b1..45b273f2e 100644 --- a/src/components/card/CardSidebarTabDetails.vue +++ b/src/components/card/CardSidebarTabDetails.vue @@ -117,7 +117,7 @@ type="deck-card" /> - + @@ -234,6 +234,9 @@ export default { this.initialize() }, methods: { + descriptionChanged(newDesc) { + this.copiedCard.description = newDesc + }, async initialize() { if (!this.card) { return @@ -253,9 +256,6 @@ export default { } }, - setDue() { - this.$store.dispatch('updateCardDue', this.copiedCard) - }, removeDue() { this.copiedCard.duedate = null this.$store.dispatch('updateCardDue', this.copiedCard) diff --git a/src/components/card/Description.vue b/src/components/card/Description.vue index 8abb0064f..9e1f06298 100644 --- a/src/components/card/Description.vue +++ b/src/components/card/Description.vue @@ -205,6 +205,7 @@ export default { await this.$store.dispatch('updateCardDesc', { ...this.card, description: this.description }) this.descriptionLastEdit = 0 this.descriptionSaving = false + this.$emit('change', this.description) }, updateDescription() { this.descriptionLastEdit = Date.now()