mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-14 00:40:30 +00:00
Allow widget field visibility to be configurable
This commit is contained in:
parent
756f6310af
commit
9b7d6b196f
30 changed files with 246 additions and 219 deletions
|
@ -17,9 +17,9 @@ export default function Component({ service }) {
|
|||
|
||||
if (!indexersData) {
|
||||
return (
|
||||
<Container>
|
||||
<Block label={t("jackett.configured")} />
|
||||
<Block label={t("jackett.errored")} />
|
||||
<Container service={service}>
|
||||
<Block label="jackett.configured" />
|
||||
<Block label="jackett.errored" />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
@ -27,9 +27,9 @@ export default function Component({ service }) {
|
|||
const errored = indexersData.filter((indexer) => indexer.last_error);
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Block label={t("jackett.configured")} value={t("common.number", { value: indexersData.length })} />
|
||||
<Block label={t("jackett.errored")} value={t("common.number", { value: errored.length })} />
|
||||
<Container service={service}>
|
||||
<Block label="jackett.configured" value={t("common.number", { value: indexersData.length })} />
|
||||
<Block label="jackett.errored" value={t("common.number", { value: errored.length })} />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue