Merge pull request #396 from nextcloud/fix/save_options

Fix saving options on fast proceed
This commit is contained in:
Jan C. Borchardt 2020-05-22 17:45:56 +02:00 committed by GitHub
commit 31a446e87b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,11 @@ export default {
data() {
return {
queue: new PQueue({ concurrency: 1 }),
// As data instead of Method, to have a separate debounce per AnswerInput
debounceUpdateAnswer: pDebounce(function(answer) {
return this.queue.add(() => this.updateAnswer(answer))
}, 500),
}
},
@ -178,9 +183,6 @@ export default {
console.error(error)
}
},
debounceUpdateAnswer: pDebounce(function(answer) {
return this.queue.add(() => this.updateAnswer(answer))
}, 500),
},
}
</script>