diff --git a/client/components/modals/BookmarksModal.vue b/client/components/modals/BookmarksModal.vue index 723ecc7d9..53ed7d070 100644 --- a/client/components/modals/BookmarksModal.vue +++ b/client/components/modals/BookmarksModal.vue @@ -94,7 +94,7 @@ export default { this.$toast.success(this.$strings.ToastBookmarkRemoveSuccess) }) .catch((error) => { - this.$toast.error(this.$strings.ToastBookmarkRemoveFailed) + this.$toast.error(this.$strings.ToastRemoveFailed) console.error(error) }) this.show = false diff --git a/client/components/modals/authors/EditModal.vue b/client/components/modals/authors/EditModal.vue index db82526f2..d49edd4de 100644 --- a/client/components/modals/authors/EditModal.vue +++ b/client/components/modals/authors/EditModal.vue @@ -121,7 +121,7 @@ export default { }) .catch((error) => { console.error('Failed to remove author', error) - this.$toast.error(this.$strings.ToastAuthorRemoveFailed) + this.$toast.error(this.$strings.ToastRemoveFailed) }) .finally(() => { this.processing = false @@ -174,7 +174,7 @@ export default { }) .catch((error) => { console.error('Failed', error) - this.$toast.error(this.$strings.ToastAuthorImageRemoveFailed) + this.$toast.error(this.$strings.ToastRemoveFailed) }) .finally(() => { this.processing = false @@ -201,7 +201,7 @@ export default { }) .catch((error) => { console.error('Failed', error) - this.$toast.error(error.response.data || this.$strings.ToastAuthorImageRemoveFailed) + this.$toast.error(error.response.data || this.$strings.ToastRemoveFailed) }) .finally(() => { this.processing = false diff --git a/client/components/modals/collections/AddCreateModal.vue b/client/components/modals/collections/AddCreateModal.vue index f42b47d79..7c22525f3 100644 --- a/client/components/modals/collections/AddCreateModal.vue +++ b/client/components/modals/collections/AddCreateModal.vue @@ -143,7 +143,7 @@ export default { }) .catch((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 }) } else { @@ -157,7 +157,7 @@ export default { }) .catch((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 }) } diff --git a/client/components/modals/collections/EditModal.vue b/client/components/modals/collections/EditModal.vue index f7b1f8beb..2ab1b939b 100644 --- a/client/components/modals/collections/EditModal.vue +++ b/client/components/modals/collections/EditModal.vue @@ -106,7 +106,7 @@ export default { .catch((error) => { console.error('Failed to remove collection', error) this.processing = false - this.$toast.error(this.$strings.ToastCollectionRemoveFailed) + this.$toast.error(this.$strings.ToastRemoveFailed) }) } }, diff --git a/client/components/modals/libraries/LibraryTools.vue b/client/components/modals/libraries/LibraryTools.vue index 7297c1aee..a42feeb29 100644 --- a/client/components/modals/libraries/LibraryTools.vue +++ b/client/components/modals/libraries/LibraryTools.vue @@ -78,4 +78,4 @@ export default { }, mounted() {} } - \ No newline at end of file + diff --git a/client/components/modals/playlists/EditModal.vue b/client/components/modals/playlists/EditModal.vue index fd45fd66e..b26df65a4 100644 --- a/client/components/modals/playlists/EditModal.vue +++ b/client/components/modals/playlists/EditModal.vue @@ -86,7 +86,7 @@ export default { .catch((error) => { console.error('Failed to remove playlist', error) this.processing = false - this.$toast.error(this.$strings.ToastPlaylistRemoveFailed) + this.$toast.error(this.$strings.ToastRemoveFailed) }) } }, diff --git a/client/pages/audiobook/_id/chapters.vue b/client/pages/audiobook/_id/chapters.vue index c5da643ac..d829b46bc 100644 --- a/client/pages/audiobook/_id/chapters.vue +++ b/client/pages/audiobook/_id/chapters.vue @@ -623,7 +623,7 @@ export default { }) .catch((error) => { console.error('Failed to remove chapters', error) - this.$toast.error('Failed to remove chapters') + this.$toast.error(this.$strings.ToastRemoveFailed) }) .finally(() => { this.saving = false diff --git a/client/pages/config/email.vue b/client/pages/config/email.vue index 3637e3124..69324579e 100644 --- a/client/pages/config/email.vue +++ b/client/pages/config/email.vue @@ -222,7 +222,7 @@ export default { }) .catch((error) => { console.error('Failed to delete device', error) - this.$toast.error('Failed to delete device') + this.$toast.error(this.$strings.ToastRemoveFailed) }) .finally(() => { this.deletingDeviceName = null diff --git a/client/pages/config/item-metadata-utils/genres.vue b/client/pages/config/item-metadata-utils/genres.vue index 5a61d51a6..e041244cb 100644 --- a/client/pages/config/item-metadata-utils/genres.vue +++ b/client/pages/config/item-metadata-utils/genres.vue @@ -130,7 +130,7 @@ export default { }) .catch((error) => { console.error('Failed to rename genre', error) - this.$toast.error('Failed to rename genre') + this.$toast.error(this.$strings.ToastRenameFailed) }) .finally(() => { this.loading = false @@ -147,7 +147,7 @@ export default { }) .catch((error) => { console.error('Failed to remove genre', error) - this.$toast.error('Failed to remove genre') + this.$toast.error(this.$strings.ToastRemoveFailed) }) .finally(() => { this.loading = false diff --git a/client/pages/config/item-metadata-utils/tags.vue b/client/pages/config/item-metadata-utils/tags.vue index a98f39b4e..0e14f97c8 100644 --- a/client/pages/config/item-metadata-utils/tags.vue +++ b/client/pages/config/item-metadata-utils/tags.vue @@ -126,7 +126,7 @@ export default { }) .catch((error) => { console.error('Failed to rename tag', error) - this.$toast.error('Failed to rename tag') + this.$toast.error(this.$strings.ToastRenameFailed) }) .finally(() => { this.loading = false @@ -143,7 +143,7 @@ export default { }) .catch((error) => { console.error('Failed to remove tag', error) - this.$toast.error('Failed to remove tag') + this.$toast.error(this.$strings.ToastRemoveFailed) }) .finally(() => { this.loading = false diff --git a/client/pages/library/_library/narrators.vue b/client/pages/library/_library/narrators.vue index 22d583c70..e2a45da44 100644 --- a/client/pages/library/_library/narrators.vue +++ b/client/pages/library/_library/narrators.vue @@ -138,7 +138,7 @@ export default { }) .catch((error) => { console.error('Failed to remove narrator', error) - this.$toast.error('Failed to remove narrator') + this.$toast.error(this.$strings.ToastRemoveFailed) this.loading = false }) }, @@ -158,4 +158,4 @@ export default { }, beforeDestroy() {} } - \ No newline at end of file + diff --git a/client/strings/en-us.json b/client/strings/en-us.json index 64cfdac9a..fa52a6218 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -806,10 +806,8 @@ "ToastAccountUpdateFailed": "Failed to update account", "ToastAccountUpdateSuccess": "Account updated", "ToastApiCallFailed": "API call failed", - "ToastAuthorImageRemoveFailed": "Failed to remove image", "ToastAuthorImageRemoveSuccess": "Author image removed", "ToastAuthorNotFound": "Author \"{0}\" not found", - "ToastAuthorRemoveFailed": "Failed to remove author", "ToastAuthorRemoveSuccess": "Author removed", "ToastAuthorSearchNotFound": "Author not found", "ToastAuthorUpdateFailed": "Failed to update author", @@ -829,7 +827,6 @@ "ToastBatchUpdateSuccess": "Batch update success", "ToastBookmarkCreateFailed": "Failed to create bookmark", "ToastBookmarkCreateSuccess": "Bookmark added", - "ToastBookmarkRemoveFailed": "Failed to remove bookmark", "ToastBookmarkRemoveSuccess": "Bookmark removed", "ToastBookmarkUpdateFailed": "Failed to update bookmark", "ToastBookmarkUpdateSuccess": "Bookmark updated", @@ -839,9 +836,7 @@ "ToastChaptersMustHaveTitles": "Chapters must have titles", "ToastCollectionItemsAddFailed": "Item(s) added to collection failed", "ToastCollectionItemsAddSuccess": "Item(s) added to collection success", - "ToastCollectionItemsRemoveFailed": "Failed to remove item(s) from collection", "ToastCollectionItemsRemoveSuccess": "Item(s) removed from collection", - "ToastCollectionRemoveFailed": "Failed to remove collection", "ToastCollectionRemoveSuccess": "Collection removed", "ToastCollectionUpdateFailed": "Failed to update collection", "ToastCollectionUpdateSuccess": "Collection updated", @@ -898,7 +893,6 @@ "ToastNoUpdatesNecessary": "No updates necessary", "ToastPlaylistCreateFailed": "Failed to create playlist", "ToastPlaylistCreateSuccess": "Playlist created", - "ToastPlaylistRemoveFailed": "Failed to remove playlist", "ToastPlaylistRemoveSuccess": "Playlist removed", "ToastPlaylistUpdateFailed": "Failed to update playlist", "ToastPlaylistUpdateSuccess": "Playlist updated", @@ -914,6 +908,8 @@ "ToastRemoveItemFromCollectionSuccess": "Item removed from collection", "ToastRemoveItemsWithIssuesFailed": "Failed to remove library items with issues", "ToastRemoveItemsWithIssuesSuccess": "Removed library items with issues", + "ToastRenameFailed": "Failed to rename", + "ToastRemoveFailed": "Failed to remove", "ToastRescanFailed": "Re-Scan Failed for {0}", "ToastRescanRemoved": "Re-Scan complete item was removed", "ToastRescanUpToDate": "Re-Scan complete item was up to date",