From b723eab4ce6221984f5ce3ce843a8590a7f30925 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Tue, 10 Jun 2025 01:20:31 +0200 Subject: [PATCH] Fix "exclude scanlator" dialog title --- public/locales/en.json | 3 ++- .../chapter/components/ChapterExcludeSanlatorsFilter.tsx | 1 + .../core/components/settings/CheckboxListSetting.tsx | 8 ++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/public/locales/en.json b/public/locales/en.json index 89832761..ba0d1a29 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -147,7 +147,8 @@ "chapter_number": "Chapter number", "source_title": "Source title" } - } + }, + "exclude_scanlators": "Exclude scanlators" }, "status": { "label": { diff --git a/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx b/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx index 5509424c..6c6008e7 100644 --- a/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx +++ b/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx @@ -35,6 +35,7 @@ export const ChapterExcludeSanlatorsFilter = ({ checked={!!excludedScanlators.length} /> { if (selectedScanlators) { diff --git a/src/modules/core/components/settings/CheckboxListSetting.tsx b/src/modules/core/components/settings/CheckboxListSetting.tsx index 3effec1f..19f5f403 100644 --- a/src/modules/core/components/settings/CheckboxListSetting.tsx +++ b/src/modules/core/components/settings/CheckboxListSetting.tsx @@ -19,6 +19,8 @@ import { CheckboxInput } from '@/modules/core/components/inputs/CheckboxInput.ts import { useSelectableCollection } from '@/modules/collection/hooks/useSelectableCollection.ts'; export function CheckboxListSetting({ + title, + emptyMessage, items, getId, getLabel, @@ -26,6 +28,8 @@ export function CheckboxListSetting({ open, onClose, }: { + title: string; + emptyMessage?: string; items: Item[]; getId: (item: Item) => string; getLabel: (item: Item) => string; @@ -70,10 +74,10 @@ export function CheckboxListSetting({ open={open} onClose={handleCancel} > - {t('category.title.set_categories')} + {title} - {items.length === 0 && {t('category.error.no_categories_found.label.info')}} + {items.length === 0 && {emptyMessage}} {items.map((item) => (