From 7e377297d7a3edccbaf0b6bcfa150b35b22ec3c3 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 7 Jul 2023 17:22:38 -0500 Subject: [PATCH] Update:Remove toast notifications for marking items as finished #1900 --- client/components/app/Appbar.vue | 4 ++-- client/components/cards/LazyBookCard.vue | 1 - client/components/tables/collection/BookTableRow.vue | 1 - client/components/tables/playlist/ItemTableRow.vue | 1 - client/components/tables/podcast/EpisodeTableRow.vue | 1 - client/pages/item/_id/index.vue | 1 - 6 files changed, 2 insertions(+), 7 deletions(-) diff --git a/client/components/app/Appbar.vue b/client/components/app/Appbar.vue index 9a51288a..879d50a3 100644 --- a/client/components/app/Appbar.vue +++ b/client/components/app/Appbar.vue @@ -303,13 +303,13 @@ export default { this.$axios .patch(`/api/me/progress/batch/update`, updateProgressPayloads) .then(() => { - this.$toast.success('Batch update success!') + this.$toast.success(this.$strings.ToastBatchUpdateSuccess) this.$store.commit('setProcessingBatch', false) this.$store.commit('globals/resetSelectedMediaItems', []) this.$eventBus.$emit('bookshelf_clear_selection') }) .catch((error) => { - this.$toast.error('Batch update failed') + this.$toast.error(this.$strings.ToastBatchUpdateFailed) console.error('Failed to batch update read/not read', error) this.$store.commit('setProcessingBatch', false) }) diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue index d5109513..b323c820 100644 --- a/client/components/cards/LazyBookCard.vue +++ b/client/components/cards/LazyBookCard.vue @@ -680,7 +680,6 @@ export default { .$patch(apiEndpoint, updatePayload) .then(() => { this.processing = false - toast.success(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedSuccess : this.$strings.ToastItemMarkedAsNotFinishedSuccess) }) .catch((error) => { console.error('Failed', error) diff --git a/client/components/tables/collection/BookTableRow.vue b/client/components/tables/collection/BookTableRow.vue index f8cce0b4..834088d9 100644 --- a/client/components/tables/collection/BookTableRow.vue +++ b/client/components/tables/collection/BookTableRow.vue @@ -188,7 +188,6 @@ export default { .$patch(`/api/me/progress/${this.book.id}`, updatePayload) .then(() => { this.isProcessingReadUpdate = false - this.$toast.success(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedSuccess : this.$strings.ToastItemMarkedAsNotFinishedSuccess) }) .catch((error) => { console.error('Failed', error) diff --git a/client/components/tables/playlist/ItemTableRow.vue b/client/components/tables/playlist/ItemTableRow.vue index bfb43825..ff986a33 100644 --- a/client/components/tables/playlist/ItemTableRow.vue +++ b/client/components/tables/playlist/ItemTableRow.vue @@ -198,7 +198,6 @@ export default { .$patch(routepath, updatePayload) .then(() => { this.isProcessingReadUpdate = false - this.$toast.success(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedSuccess : this.$strings.ToastItemMarkedAsNotFinishedSuccess) }) .catch((error) => { console.error('Failed', error) diff --git a/client/components/tables/podcast/EpisodeTableRow.vue b/client/components/tables/podcast/EpisodeTableRow.vue index b05d1c86..4300b8e1 100644 --- a/client/components/tables/podcast/EpisodeTableRow.vue +++ b/client/components/tables/podcast/EpisodeTableRow.vue @@ -183,7 +183,6 @@ export default { .$patch(`/api/me/progress/${this.libraryItemId}/${this.episode.id}`, updatePayload) .then(() => { this.isProcessingReadUpdate = false - this.$toast.success(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedSuccess : this.$strings.ToastItemMarkedAsNotFinishedSuccess) }) .catch((error) => { console.error('Failed', error) diff --git a/client/pages/item/_id/index.vue b/client/pages/item/_id/index.vue index d2160194..ac4e3d8a 100644 --- a/client/pages/item/_id/index.vue +++ b/client/pages/item/_id/index.vue @@ -533,7 +533,6 @@ export default { .$patch(`/api/me/progress/${this.libraryItemId}`, updatePayload) .then(() => { this.isProcessingReadUpdate = false - this.$toast.success(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedSuccess : this.$strings.ToastItemMarkedAsNotFinishedSuccess) }) .catch((error) => { console.error('Failed', error)