Merge pull request #2062 from nextcloud/bugfix/2061

Fix saving card description after toggling checkboxes
This commit is contained in:
Julius Härtl 2020-06-24 15:55:26 +02:00 коммит произвёл GitHub
Родитель c93f30aafc a9d52d7e7a
Коммит f047ee9e1c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -423,7 +423,8 @@ export default {
}
return match
})
this.updateDescription(updatedDescription)
this.$set(this.copiedCard, 'description', updatedDescription)
this.$store.dispatch('updateCardDesc', this.copiedCard)
}
},
updateRelativeTimestamps() {
@ -446,7 +447,7 @@ export default {
delete this.copiedCard.descriptionLastEdit
this.descriptionSaving = false
},
updateDescription(text) {
updateDescription() {
this.copiedCard.descriptionLastEdit = Date.now()
clearTimeout(this.descriptionSaveTimeout)
this.descriptionSaveTimeout = setTimeout(async() => {