don't reset update time when no update was written to db

Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
This commit is contained in:
grnd-alt
2024-06-17 13:43:12 +02:00
parent 7e7f82fa0c
commit 3c5ca27eb8

View File

@@ -187,7 +187,6 @@ export default {
}, },
onUpdate: ({ markdown }) => { onUpdate: ({ markdown }) => {
if (this.description === markdown) { if (this.description === markdown) {
this.descriptionLastEdit = 0
return return
} }
this.description = markdown this.description = markdown
@@ -283,7 +282,9 @@ export default {
return return
} }
this.descriptionSaving = true 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.$emit('change', this.description)
this.descriptionLastEdit = 0 this.descriptionLastEdit = 0
this.descriptionSaving = false this.descriptionSaving = false