Merge pull request #6005 from nextcloud/fix/5628-deck-card-descriptions-not-saved

don't reset update time when no update was written to db
This commit is contained in:
Julius Härtl
2024-06-26 10:15:17 +02:00
committed by GitHub

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