mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Fix: correct omada widget connectedGateways (#4872)
This commit is contained in:
parent
99cde187d8
commit
b466be684f
@ -178,7 +178,7 @@
|
|||||||
"connectedAp": "Connected APs",
|
"connectedAp": "Connected APs",
|
||||||
"activeUser": "Active devices",
|
"activeUser": "Active devices",
|
||||||
"alerts": "Alerts",
|
"alerts": "Alerts",
|
||||||
"connectedGateway": "Connected gateways",
|
"connectedGateways": "Connected gateways",
|
||||||
"connectedSwitches": "Connected switches"
|
"connectedSwitches": "Connected switches"
|
||||||
},
|
},
|
||||||
"nzbget": {
|
"nzbget": {
|
||||||
|
@ -18,7 +18,7 @@ export default function Component({ service }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!widget.fields) {
|
if (!widget.fields) {
|
||||||
widget.fields = ["connectedAp", "activeUser", "alerts", "connectedGateway"];
|
widget.fields = ["connectedAp", "activeUser", "alerts", "connectedGateways"];
|
||||||
} else if (widget.fields?.length > 4) {
|
} else if (widget.fields?.length > 4) {
|
||||||
widget.fields = widget.fields.slice(0, 4);
|
widget.fields = widget.fields.slice(0, 4);
|
||||||
}
|
}
|
||||||
@ -29,7 +29,7 @@ export default function Component({ service }) {
|
|||||||
<Block label="omada.connectedAp" />
|
<Block label="omada.connectedAp" />
|
||||||
<Block label="omada.activeUser" />
|
<Block label="omada.activeUser" />
|
||||||
<Block label="omada.alerts" />
|
<Block label="omada.alerts" />
|
||||||
<Block label="omada.connectedGateway" />
|
<Block label="omada.connectedGateways" />
|
||||||
<Block label="omada.connectedSwitches" />
|
<Block label="omada.connectedSwitches" />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
@ -40,7 +40,7 @@ export default function Component({ service }) {
|
|||||||
<Block label="omada.connectedAp" value={t("common.number", { value: omadaData.connectedAp })} />
|
<Block label="omada.connectedAp" value={t("common.number", { value: omadaData.connectedAp })} />
|
||||||
<Block label="omada.activeUser" value={t("common.number", { value: omadaData.activeUser })} />
|
<Block label="omada.activeUser" value={t("common.number", { value: omadaData.activeUser })} />
|
||||||
<Block label="omada.alerts" value={t("common.number", { value: omadaData.alerts })} />
|
<Block label="omada.alerts" value={t("common.number", { value: omadaData.alerts })} />
|
||||||
<Block label="omada.connectedGateway" value={t("common.number", { value: omadaData.connectedGateways })} />
|
<Block label="omada.connectedGateways" value={t("common.number", { value: omadaData.connectedGateways })} />
|
||||||
<Block label="omada.connectedSwitches" value={t("common.number", { value: omadaData.connectedSwitches })} />
|
<Block label="omada.connectedSwitches" value={t("common.number", { value: omadaData.connectedSwitches })} />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user