Switch to using the websocket for confirmation of batch updates, allowing the main request to be done asynchronously

This commit is contained in:
Nick Thomson 2022-09-24 22:17:36 +01:00
parent 2d6f9bab8b
commit 3e7a76574b
3 changed files with 26 additions and 14 deletions

View file

@ -124,17 +124,8 @@ export default {
options: this.options,
libraryItemIds: this.selectedBookIds
})
.then((result) => {
var success = result.success || false
var toast = 'Batch quick match complete!\n' + result.updates + ' Updated'
if (result.unmatched && (result.unmatched > 0)) {
toast += '\n' + result.unmatched + ' with no matches'
}
if (success) {
this.$toast.success(toast)
} else {
this.$toast.info(toast)
}
.then(() => {
this.$toast.info('Batch quick match of ' + this.selectedBookIds.length + ' books started!')
this.processing = false
this.$store.commit('setProcessingBatch', false)
this.show = false