Merge pull request #6036 from nextcloud/backport/6005/stable27

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

View File

@@ -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