From 8032fe69642fceef5705629a55eaa29a32d3fe16 Mon Sep 17 00:00:00 2001 From: grnd-alt Date: Mon, 17 Jun 2024 13:43:12 +0200 Subject: [PATCH] don't reset update time when no update was written to db Signed-off-by: grnd-alt --- src/components/card/Description.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/card/Description.vue b/src/components/card/Description.vue index a3be5dc5a..4369b9abb 100644 --- a/src/components/card/Description.vue +++ b/src/components/card/Description.vue @@ -203,7 +203,6 @@ export default { }, onUpdate: ({ markdown }) => { if (this.description === markdown) { - this.descriptionLastEdit = 0 return } this.description = markdown @@ -299,7 +298,9 @@ export default { return } this.descriptionSaving = true - await this.$store.dispatch('updateCardDesc', { ...this.card, description: this.description }) + if (this.card.id !== undefined) { + await this.$store.dispatch('updateCardDesc', { ...this.card, description: this.description }) + } this.$emit('change', this.description) this.descriptionLastEdit = 0 this.descriptionSaving = false