Merge pull request #2793 from nextcloud/fix/descSave

This commit is contained in:
Julius Härtl
2021-02-16 14:58:59 +01:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -117,7 +117,7 @@
type="deck-card" />
</div>
<Description :key="card.id" :card="card" />
<Description :key="card.id" :card="card" @change="descriptionChanged" />
</div>
</template>
@@ -234,6 +234,9 @@ export default {
this.initialize()
},
methods: {
descriptionChanged(newDesc) {
this.copiedCard.description = newDesc
},
async initialize() {
if (!this.card) {
return
@@ -253,9 +256,6 @@ export default {
}
},
setDue() {
this.$store.dispatch('updateCardDue', this.copiedCard)
},
removeDue() {
this.copiedCard.duedate = null
this.$store.dispatch('updateCardDue', this.copiedCard)

View File

@@ -218,6 +218,7 @@ export default {
await this.$store.dispatch('updateCardDesc', { ...this.card, description: this.description })
this.descriptionLastEdit = 0
this.descriptionSaving = false
this.$emit('change', this.description)
},
updateDescription() {
this.descriptionLastEdit = Date.now()