mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix showing Active in NTP
This commit is contained in:
@@ -139,9 +139,12 @@ const SystemStatus = () => {
|
|||||||
case NTPSyncStatus.NTP_INACTIVE:
|
case NTPSyncStatus.NTP_INACTIVE:
|
||||||
return LL.INACTIVE(0);
|
return LL.INACTIVE(0);
|
||||||
case NTPSyncStatus.NTP_ACTIVE:
|
case NTPSyncStatus.NTP_ACTIVE:
|
||||||
return LL.ACTIVE() + (data.ntp_time !== undefined)
|
return (
|
||||||
? ' (' + formatDateTime(data.ntp_time) + ')'
|
LL.ACTIVE() +
|
||||||
: '';
|
(data.ntp_time !== undefined
|
||||||
|
? ' (' + formatDateTime(data.ntp_time) + ')'
|
||||||
|
: '')
|
||||||
|
);
|
||||||
default:
|
default:
|
||||||
return LL.UNKNOWN();
|
return LL.UNKNOWN();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user