diff --git a/src/features/manga/services/Mangas.ts b/src/features/manga/services/Mangas.ts index b281536e..631fb4e4 100644 --- a/src/features/manga/services/Mangas.ts +++ b/src/features/manga/services/Mangas.ts @@ -306,6 +306,7 @@ export class Mangas { } }, true, + true, ); } @@ -323,6 +324,7 @@ export class Mangas { } }, true, + true, ); } @@ -349,6 +351,7 @@ export class Mangas { } }, true, + true, ); } @@ -366,6 +369,7 @@ export class Mangas { } }, true, + true, ); } @@ -424,6 +428,7 @@ export class Mangas { itemCount: number, fnToExecute: () => Promise, disableConfirmation?: boolean, + errorOnlyToast?: boolean, ): Promise { const { always, bulkAction, bulkActionCountForce } = MANGA_ACTION_TO_CONFIRMATION_REQUIRED[action]; const requiresConfirmation = @@ -452,6 +457,11 @@ export class Mangas { } await fnToExecute(); + + if (errorOnlyToast) { + return; + } + makeToast( /* lingui-extract-ignore */ i18n.t({ ...MANGA_ACTION_TO_TRANSLATION[action].success, values: { count: itemCount } }),