diff --git a/public/locales/en/common.json b/public/locales/en/common.json index f144182f..953e9fbd 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -51,7 +51,8 @@ "wlan_users": "WLAN Users", "up": "UP", "down": "DOWN", - "wait": "Please wait" + "wait": "Please wait", + "empty_data": "Subsystem status unknown" }, "docker": { "rx": "RX", diff --git a/src/components/widgets/unifi_console/unifi_console.jsx b/src/components/widgets/unifi_console/unifi_console.jsx index af8fd458..156e2866 100644 --- a/src/components/widgets/unifi_console/unifi_console.jsx +++ b/src/components/widgets/unifi_console/unifi_console.jsx @@ -55,6 +55,8 @@ export default function Widget({ options }) { const name = wan.gw_name ?? defaultSite.desc; const uptime = wan["gw_system-stats"] ? wan["gw_system-stats"].uptime : null; + const dataEmpty = !(wan.show || lan.show || wlan.show || uptime); + return (