mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-06-21 06:39:52 -04:00
FE: add 'Wait for settings reload' option to UI settings
This commit is contained in:
@@ -32,7 +32,6 @@ SCAN_SUBNETS = ["192.168.1.0/24 --interface=eth1", "192.168.1.0/24 --interface=e
|
||||
LOG_LEVEL = "verbose"
|
||||
TIMEZONE = "Europe/Berlin"
|
||||
UI_LANG = "English (en_us)"
|
||||
UI_WAIT_FOR_SETTINGS = False
|
||||
UI_PRESENCE = ["online", "offline", "archived"]
|
||||
UI_MY_DEVICES = ["online", "offline", "archived", "new", "down"]
|
||||
UI_NOT_RANDOM_MAC = []
|
||||
|
||||
@@ -452,16 +452,6 @@ def importConfigs(pm, db, all_plugins):
|
||||
"UI",
|
||||
)
|
||||
|
||||
conf.UI_WAIT_FOR_SETTINGS = ccd(
|
||||
"UI_WAIT_FOR_SETTINGS",
|
||||
False,
|
||||
c_d,
|
||||
"Wait for settings reload",
|
||||
'{"dataType":"boolean", "elements": [{"elementType" : "checkbox", "elementOptions" : [] ,"transformers": []}]}',
|
||||
"[]",
|
||||
"UI",
|
||||
)
|
||||
|
||||
# Init timezone in case it changed and handle invalid values
|
||||
try:
|
||||
if conf.TIMEZONE not in all_timezones:
|
||||
|
||||
Reference in New Issue
Block a user