mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Allow widget field visibility to be configurable
This commit is contained in:
@@ -17,24 +17,24 @@ export default function Component({ service }) {
|
||||
|
||||
if (!statsData) {
|
||||
return (
|
||||
<Container>
|
||||
<Block label={t("strelaysrv.numActiveSessions")} />
|
||||
<Block label={t("strelaysrv.numConnections")} />
|
||||
<Block label={t("strelaysrv.bytesProxied")} />
|
||||
<Container service={service}>
|
||||
<Block label="strelaysrv.numActiveSessions" />
|
||||
<Block label="strelaysrv.numConnections" />
|
||||
<Block label="strelaysrv.bytesProxied" />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Container service={service}>
|
||||
<Block
|
||||
label={t("strelaysrv.numActiveSessions")}
|
||||
label="strelaysrv.numActiveSessions"
|
||||
value={t("common.number", { value: statsData.numActiveSessions })}
|
||||
/>
|
||||
<Block label={t("strelaysrv.numConnections")} value={t("common.number", { value: statsData.numConnections })} />
|
||||
<Block label="strelaysrv.numConnections" value={t("common.number", { value: statsData.numConnections })} />
|
||||
<Block label={t("strelaysrv.dataRelayed")} value={t("common.bytes", { value: statsData.bytesProxied })} />
|
||||
<Block
|
||||
label={t("strelaysrv.transferRate")}
|
||||
label="strelaysrv.transferRate"
|
||||
value={t("common.bitrate", { value: statsData.kbps10s1m5m15m30m60m[5] })}
|
||||
/>
|
||||
</Container>
|
||||
|
||||
Reference in New Issue
Block a user