mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 23:38:46 +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
|
@ -19,19 +19,19 @@ export default function Component({ service }) {
|
|||
|
||||
if (!wantedData || !queuedData || !seriesData) {
|
||||
return (
|
||||
<Container>
|
||||
<Block label={t("sonarr.wanted")} />
|
||||
<Block label={t("sonarr.queued")} />
|
||||
<Block label={t("sonarr.series")} />
|
||||
<Container service={service}>
|
||||
<Block label="sonarr.wanted" />
|
||||
<Block label="sonarr.queued" />
|
||||
<Block label="sonarr.series" />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Block label={t("sonarr.wanted")} value={wantedData.totalRecords} />
|
||||
<Block label={t("sonarr.queued")} value={queuedData.totalRecords} />
|
||||
<Block label={t("sonarr.series")} value={seriesData.total} />
|
||||
<Container service={service}>
|
||||
<Block label="sonarr.wanted" value={wantedData.totalRecords} />
|
||||
<Block label="sonarr.queued" value={queuedData.totalRecords} />
|
||||
<Block label="sonarr.series" value={seriesData.total} />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue