Update client/components/modals/BatchQuickMatchModel.vue

Co-authored-by: advplyr <67830747+advplyr@users.noreply.github.com>
This commit is contained in:
Undergrid 2022-09-24 23:40:07 +01:00 committed by GitHub
parent 5e8979876f
commit 951afaa568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,13 +125,10 @@ export default {
}) })
.then(() => { .then(() => {
this.$toast.info('Batch quick match of ' + this.selectedBookIds.length + ' books started!') this.$toast.info('Batch quick match of ' + this.selectedBookIds.length + ' books started!')
this.processing = false }).catch((error) => {
this.$store.commit('setProcessingBatch', false)
this.show = false
})
.catch((error) => {
this.$toast.error('Batch quick match failed') this.$toast.error('Batch quick match failed')
console.error('Failed to batch quick match', error) console.error('Failed to batch quick match', error)
}).finally(() => {
this.processing = false this.processing = false
this.$store.commit('setProcessingBatch', false) this.$store.commit('setProcessingBatch', false)
this.show = false this.show = false