mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 08:25:47 +01:00
✏️ Fix torrent module option name
This commit is contained in:
@@ -29,8 +29,8 @@ export const TorrentsModule: IModule = {
|
|||||||
icon: Download,
|
icon: Download,
|
||||||
component: TorrentsComponent,
|
component: TorrentsComponent,
|
||||||
options: {
|
options: {
|
||||||
hidecomplete: {
|
hideComplete: {
|
||||||
name: 'descriptor.settings.hideComplete',
|
name: 'descriptor.settings.hideComplete.label',
|
||||||
value: false,
|
value: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -48,7 +48,7 @@ export default function TorrentsComponent() {
|
|||||||
) ?? [];
|
) ?? [];
|
||||||
|
|
||||||
const hideComplete: boolean =
|
const hideComplete: boolean =
|
||||||
(config?.modules?.[TorrentsModule.id]?.options?.hidecomplete?.value as boolean) ?? false;
|
(config?.modules?.[TorrentsModule.id]?.options?.hideComplete?.value as boolean) ?? false;
|
||||||
const [torrents, setTorrents] = useState<NormalizedTorrent[]>([]);
|
const [torrents, setTorrents] = useState<NormalizedTorrent[]>([]);
|
||||||
const setSafeInterval = useSetSafeInterval();
|
const setSafeInterval = useSetSafeInterval();
|
||||||
const [isLoading, setIsLoading] = useState(true);
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user