mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 19:31:39 +00:00
Update: batch delete toast
This commit is contained in:
parent
9318b48634
commit
5b7e56bba3
2 changed files with 4 additions and 2 deletions
|
|
@ -332,13 +332,13 @@ export default {
|
|||
libraryItemIds: this.selectedMediaItems.map((i) => i.id)
|
||||
})
|
||||
.then(() => {
|
||||
this.$toast.success('Batch delete success')
|
||||
this.$toast.success(this.$strings.ToastBatchDeleteSuccess)
|
||||
this.$store.commit('globals/resetSelectedMediaItems', [])
|
||||
this.$eventBus.$emit('bookshelf_clear_selection')
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Batch delete failed', error)
|
||||
this.$toast.error('Batch delete failed')
|
||||
this.$toast.error(this.$strings.ToastBatchDeleteFailed)
|
||||
})
|
||||
.finally(() => {
|
||||
this.$store.commit('setProcessingBatch', false)
|
||||
|
|
|
|||
|
|
@ -820,6 +820,8 @@
|
|||
"ToastBackupRestoreFailed": "Failed to restore backup",
|
||||
"ToastBackupUploadFailed": "Failed to upload backup",
|
||||
"ToastBackupUploadSuccess": "Backup uploaded",
|
||||
"ToastBatchDeleteFailed": "Batch delete failed",
|
||||
"ToastBatchDeleteSuccess": "Batch delete success",
|
||||
"ToastBatchUpdateFailed": "Batch update failed",
|
||||
"ToastBatchUpdateSuccess": "Batch update success",
|
||||
"ToastBookmarkCreateFailed": "Failed to create bookmark",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue