mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-11 03:41:42 +00:00
Simplify: "renameFail" and "removeFail" toasts
This commit is contained in:
parent
71c0b2bca3
commit
9311fd10bc
12 changed files with 19 additions and 23 deletions
|
|
@ -94,7 +94,7 @@ export default {
|
||||||
this.$toast.success(this.$strings.ToastBookmarkRemoveSuccess)
|
this.$toast.success(this.$strings.ToastBookmarkRemoveSuccess)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
this.$toast.error(this.$strings.ToastBookmarkRemoveFailed)
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
console.error(error)
|
console.error(error)
|
||||||
})
|
})
|
||||||
this.show = false
|
this.show = false
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to remove author', error)
|
console.error('Failed to remove author', error)
|
||||||
this.$toast.error(this.$strings.ToastAuthorRemoveFailed)
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.processing = false
|
this.processing = false
|
||||||
|
|
@ -174,7 +174,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed', error)
|
console.error('Failed', error)
|
||||||
this.$toast.error(this.$strings.ToastAuthorImageRemoveFailed)
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.processing = false
|
this.processing = false
|
||||||
|
|
@ -201,7 +201,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed', error)
|
console.error('Failed', error)
|
||||||
this.$toast.error(error.response.data || this.$strings.ToastAuthorImageRemoveFailed)
|
this.$toast.error(error.response.data || this.$strings.ToastRemoveFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.processing = false
|
this.processing = false
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to remove books from collection', error)
|
console.error('Failed to remove books from collection', error)
|
||||||
this.$toast.error(this.$strings.ToastCollectionItemsRemoveFailed)
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
this.processing = false
|
this.processing = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -157,7 +157,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to remove book from collection', error)
|
console.error('Failed to remove book from collection', error)
|
||||||
this.$toast.error(this.$strings.ToastCollectionItemsRemoveFailed)
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
this.processing = false
|
this.processing = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ export default {
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to remove collection', error)
|
console.error('Failed to remove collection', error)
|
||||||
this.processing = false
|
this.processing = false
|
||||||
this.$toast.error(this.$strings.ToastCollectionRemoveFailed)
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -78,4 +78,4 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {}
|
mounted() {}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ export default {
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to remove playlist', error)
|
console.error('Failed to remove playlist', error)
|
||||||
this.processing = false
|
this.processing = false
|
||||||
this.$toast.error(this.$strings.ToastPlaylistRemoveFailed)
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -623,7 +623,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to remove chapters', error)
|
console.error('Failed to remove chapters', error)
|
||||||
this.$toast.error('Failed to remove chapters')
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.saving = false
|
this.saving = false
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to delete device', error)
|
console.error('Failed to delete device', error)
|
||||||
this.$toast.error('Failed to delete device')
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.deletingDeviceName = null
|
this.deletingDeviceName = null
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to rename genre', error)
|
console.error('Failed to rename genre', error)
|
||||||
this.$toast.error('Failed to rename genre')
|
this.$toast.error(this.$strings.ToastRenameFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
@ -147,7 +147,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to remove genre', error)
|
console.error('Failed to remove genre', error)
|
||||||
this.$toast.error('Failed to remove genre')
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to rename tag', error)
|
console.error('Failed to rename tag', error)
|
||||||
this.$toast.error('Failed to rename tag')
|
this.$toast.error(this.$strings.ToastRenameFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
@ -143,7 +143,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to remove tag', error)
|
console.error('Failed to remove tag', error)
|
||||||
this.$toast.error('Failed to remove tag')
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to remove narrator', error)
|
console.error('Failed to remove narrator', error)
|
||||||
this.$toast.error('Failed to remove narrator')
|
this.$toast.error(this.$strings.ToastRemoveFailed)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
@ -158,4 +158,4 @@ export default {
|
||||||
},
|
},
|
||||||
beforeDestroy() {}
|
beforeDestroy() {}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -806,10 +806,8 @@
|
||||||
"ToastAccountUpdateFailed": "Failed to update account",
|
"ToastAccountUpdateFailed": "Failed to update account",
|
||||||
"ToastAccountUpdateSuccess": "Account updated",
|
"ToastAccountUpdateSuccess": "Account updated",
|
||||||
"ToastApiCallFailed": "API call failed",
|
"ToastApiCallFailed": "API call failed",
|
||||||
"ToastAuthorImageRemoveFailed": "Failed to remove image",
|
|
||||||
"ToastAuthorImageRemoveSuccess": "Author image removed",
|
"ToastAuthorImageRemoveSuccess": "Author image removed",
|
||||||
"ToastAuthorNotFound": "Author \"{0}\" not found",
|
"ToastAuthorNotFound": "Author \"{0}\" not found",
|
||||||
"ToastAuthorRemoveFailed": "Failed to remove author",
|
|
||||||
"ToastAuthorRemoveSuccess": "Author removed",
|
"ToastAuthorRemoveSuccess": "Author removed",
|
||||||
"ToastAuthorSearchNotFound": "Author not found",
|
"ToastAuthorSearchNotFound": "Author not found",
|
||||||
"ToastAuthorUpdateFailed": "Failed to update author",
|
"ToastAuthorUpdateFailed": "Failed to update author",
|
||||||
|
|
@ -829,7 +827,6 @@
|
||||||
"ToastBatchUpdateSuccess": "Batch update success",
|
"ToastBatchUpdateSuccess": "Batch update success",
|
||||||
"ToastBookmarkCreateFailed": "Failed to create bookmark",
|
"ToastBookmarkCreateFailed": "Failed to create bookmark",
|
||||||
"ToastBookmarkCreateSuccess": "Bookmark added",
|
"ToastBookmarkCreateSuccess": "Bookmark added",
|
||||||
"ToastBookmarkRemoveFailed": "Failed to remove bookmark",
|
|
||||||
"ToastBookmarkRemoveSuccess": "Bookmark removed",
|
"ToastBookmarkRemoveSuccess": "Bookmark removed",
|
||||||
"ToastBookmarkUpdateFailed": "Failed to update bookmark",
|
"ToastBookmarkUpdateFailed": "Failed to update bookmark",
|
||||||
"ToastBookmarkUpdateSuccess": "Bookmark updated",
|
"ToastBookmarkUpdateSuccess": "Bookmark updated",
|
||||||
|
|
@ -839,9 +836,7 @@
|
||||||
"ToastChaptersMustHaveTitles": "Chapters must have titles",
|
"ToastChaptersMustHaveTitles": "Chapters must have titles",
|
||||||
"ToastCollectionItemsAddFailed": "Item(s) added to collection failed",
|
"ToastCollectionItemsAddFailed": "Item(s) added to collection failed",
|
||||||
"ToastCollectionItemsAddSuccess": "Item(s) added to collection success",
|
"ToastCollectionItemsAddSuccess": "Item(s) added to collection success",
|
||||||
"ToastCollectionItemsRemoveFailed": "Failed to remove item(s) from collection",
|
|
||||||
"ToastCollectionItemsRemoveSuccess": "Item(s) removed from collection",
|
"ToastCollectionItemsRemoveSuccess": "Item(s) removed from collection",
|
||||||
"ToastCollectionRemoveFailed": "Failed to remove collection",
|
|
||||||
"ToastCollectionRemoveSuccess": "Collection removed",
|
"ToastCollectionRemoveSuccess": "Collection removed",
|
||||||
"ToastCollectionUpdateFailed": "Failed to update collection",
|
"ToastCollectionUpdateFailed": "Failed to update collection",
|
||||||
"ToastCollectionUpdateSuccess": "Collection updated",
|
"ToastCollectionUpdateSuccess": "Collection updated",
|
||||||
|
|
@ -898,7 +893,6 @@
|
||||||
"ToastNoUpdatesNecessary": "No updates necessary",
|
"ToastNoUpdatesNecessary": "No updates necessary",
|
||||||
"ToastPlaylistCreateFailed": "Failed to create playlist",
|
"ToastPlaylistCreateFailed": "Failed to create playlist",
|
||||||
"ToastPlaylistCreateSuccess": "Playlist created",
|
"ToastPlaylistCreateSuccess": "Playlist created",
|
||||||
"ToastPlaylistRemoveFailed": "Failed to remove playlist",
|
|
||||||
"ToastPlaylistRemoveSuccess": "Playlist removed",
|
"ToastPlaylistRemoveSuccess": "Playlist removed",
|
||||||
"ToastPlaylistUpdateFailed": "Failed to update playlist",
|
"ToastPlaylistUpdateFailed": "Failed to update playlist",
|
||||||
"ToastPlaylistUpdateSuccess": "Playlist updated",
|
"ToastPlaylistUpdateSuccess": "Playlist updated",
|
||||||
|
|
@ -914,6 +908,8 @@
|
||||||
"ToastRemoveItemFromCollectionSuccess": "Item removed from collection",
|
"ToastRemoveItemFromCollectionSuccess": "Item removed from collection",
|
||||||
"ToastRemoveItemsWithIssuesFailed": "Failed to remove library items with issues",
|
"ToastRemoveItemsWithIssuesFailed": "Failed to remove library items with issues",
|
||||||
"ToastRemoveItemsWithIssuesSuccess": "Removed library items with issues",
|
"ToastRemoveItemsWithIssuesSuccess": "Removed library items with issues",
|
||||||
|
"ToastRenameFailed": "Failed to rename",
|
||||||
|
"ToastRemoveFailed": "Failed to remove",
|
||||||
"ToastRescanFailed": "Re-Scan Failed for {0}",
|
"ToastRescanFailed": "Re-Scan Failed for {0}",
|
||||||
"ToastRescanRemoved": "Re-Scan complete item was removed",
|
"ToastRescanRemoved": "Re-Scan complete item was removed",
|
||||||
"ToastRescanUpToDate": "Re-Scan complete item was up to date",
|
"ToastRescanUpToDate": "Re-Scan complete item was up to date",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue