Cache console version check result

This commit is contained in:
Jason Fischer 2022-10-08 13:52:07 -07:00
parent 1249ecaa68
commit 2bd9c8eddc
No known key found for this signature in database
3 changed files with 33 additions and 31 deletions

View file

@ -45,12 +45,16 @@ export default function Component({ service }) {
}
};
const uptime = `${t("common.number", { value: data.uptime / 86400, maximumFractionDigits: 1 })} ${t("unifi.days")}`;
const lanUsers = `${t("common.number", { value: data.lan.users })} ${t("unifi.users")}`;
const wanUsers = `${t("common.number", { value: data.wlan.users })} ${t("unifi.users")}`;
return (
<Container service={service}>
<Block label="unifi.uptime" value={t("common.number", { value: data.uptime / 86400, maximumFractionDigits: 1 }) + " " + t("unifi.days")} />
<Block label="unifi.uptime" value={ uptime } />
<Block label="unifi.wan" value={ data.up ? t("unifi.up") : t("unifi.down") } />
<Block label="unifi.lan" value={t("common.number", { value: data.lan.users }) + " " + t("unifi.users")} />
<Block label="unifi.wlan" value={t("common.number", { value: data.wlan.users }) + " " + t("unifi.users")} />
<Block label="unifi.lan" value={ lanUsers } />
<Block label="unifi.wlan" value={ wanUsers } />
</Container>
);
}