Fix "exclude scanlator" dialog title
This commit is contained in:
@@ -147,7 +147,8 @@
|
|||||||
"chapter_number": "Chapter number",
|
"chapter_number": "Chapter number",
|
||||||
"source_title": "Source title"
|
"source_title": "Source title"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"exclude_scanlators": "Exclude scanlators"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"label": {
|
"label": {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export const ChapterExcludeSanlatorsFilter = ({
|
|||||||
checked={!!excludedScanlators.length}
|
checked={!!excludedScanlators.length}
|
||||||
/>
|
/>
|
||||||
<CheckboxListSetting
|
<CheckboxListSetting
|
||||||
|
title={t('chapter.option.exclude_scanlators')}
|
||||||
open={popupState.isOpen}
|
open={popupState.isOpen}
|
||||||
onClose={(selectedScanlators) => {
|
onClose={(selectedScanlators) => {
|
||||||
if (selectedScanlators) {
|
if (selectedScanlators) {
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ import { CheckboxInput } from '@/modules/core/components/inputs/CheckboxInput.ts
|
|||||||
import { useSelectableCollection } from '@/modules/collection/hooks/useSelectableCollection.ts';
|
import { useSelectableCollection } from '@/modules/collection/hooks/useSelectableCollection.ts';
|
||||||
|
|
||||||
export function CheckboxListSetting<Item>({
|
export function CheckboxListSetting<Item>({
|
||||||
|
title,
|
||||||
|
emptyMessage,
|
||||||
items,
|
items,
|
||||||
getId,
|
getId,
|
||||||
getLabel,
|
getLabel,
|
||||||
@@ -26,6 +28,8 @@ export function CheckboxListSetting<Item>({
|
|||||||
open,
|
open,
|
||||||
onClose,
|
onClose,
|
||||||
}: {
|
}: {
|
||||||
|
title: string;
|
||||||
|
emptyMessage?: string;
|
||||||
items: Item[];
|
items: Item[];
|
||||||
getId: (item: Item) => string;
|
getId: (item: Item) => string;
|
||||||
getLabel: (item: Item) => string;
|
getLabel: (item: Item) => string;
|
||||||
@@ -70,10 +74,10 @@ export function CheckboxListSetting<Item>({
|
|||||||
open={open}
|
open={open}
|
||||||
onClose={handleCancel}
|
onClose={handleCancel}
|
||||||
>
|
>
|
||||||
<DialogTitle>{t('category.title.set_categories')}</DialogTitle>
|
<DialogTitle>{title}</DialogTitle>
|
||||||
<DialogContent dividers>
|
<DialogContent dividers>
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
{items.length === 0 && <span>{t('category.error.no_categories_found.label.info')}</span>}
|
{items.length === 0 && <span>{emptyMessage}</span>}
|
||||||
{items.map((item) => (
|
{items.map((item) => (
|
||||||
<CheckboxInput
|
<CheckboxInput
|
||||||
checked={selectedItemIds.includes(getId(item))}
|
checked={selectedItemIds.includes(getId(item))}
|
||||||
|
|||||||
Reference in New Issue
Block a user