don't reset update time when no update was written to db (#6034)
Signed-off-by: grnd-alt <salimbelakkaf@outlook.de> Co-authored-by: grnd-alt <salimbelakkaf@outlook.de>
This commit is contained in:
@@ -204,7 +204,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
|
||||||
@@ -300,7 +299,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
|
||||||
|
|||||||
Reference in New Issue
Block a user