diff options
author | Simon Rettberg | 2020-11-04 13:31:33 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-11-04 13:31:33 +0100 |
commit | 53d10a82fb07487f411c0c75dd0d58cc83610fbe (patch) | |
tree | 5f6fed7f2b2c60c5932186389d07a15b8a4e23b0 /modules-available/locationinfo/frontend | |
parent | [locationinfo] "show hostname" cannot be overridden per location (diff) | |
download | slx-admin-53d10a82fb07487f411c0c75dd0d58cc83610fbe.tar.gz slx-admin-53d10a82fb07487f411c0c75dd0d58cc83610fbe.tar.xz slx-admin-53d10a82fb07487f411c0c75dd0d58cc83610fbe.zip |
[locationinfo] Allow seconds in prettytime mode, change eco mode text
Eco mode doesn't change any colors anymore currently, it merely lowers
the update rate and hides seconds from the countdown.
Diffstat (limited to 'modules-available/locationinfo/frontend')
-rw-r--r-- | modules-available/locationinfo/frontend/frontendscript.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/locationinfo/frontend/frontendscript.js b/modules-available/locationinfo/frontend/frontendscript.js index efe4d5b6..f39f2be8 100644 --- a/modules-available/locationinfo/frontend/frontendscript.js +++ b/modules-available/locationinfo/frontend/frontendscript.js @@ -67,6 +67,9 @@ function GetTimeDiferenceAsString(a, b, globalConfig) { str += hours + 'h '; } str += minutes + 'min '; + if (globalConfig && !globalConfig.eco) { + str += seconds + 's '; + } return str; } |