mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-13 16:30:31 +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,10 +19,10 @@ export default function Component({ service }) {
|
|||
|
||||
if (!containersData) {
|
||||
return (
|
||||
<Container>
|
||||
<Block label={t("portainer.running")} />
|
||||
<Block label={t("portainer.stopped")} />
|
||||
<Block label={t("portainer.total")} />
|
||||
<Container service={service}>
|
||||
<Block label="portainer.running" />
|
||||
<Block label="portainer.stopped" />
|
||||
<Block label="portainer.total" />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
@ -36,10 +36,10 @@ export default function Component({ service }) {
|
|||
const total = containersData.length;
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Block label={t("portainer.running")} value={running} />
|
||||
<Block label={t("portainer.stopped")} value={stopped} />
|
||||
<Block label={t("portainer.total")} value={total} />
|
||||
<Container service={service}>
|
||||
<Block label="portainer.running" value={running} />
|
||||
<Block label="portainer.stopped" value={stopped} />
|
||||
<Block label="portainer.total" value={total} />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue