Trigger an informative alert when an host pool is activated/deactivated

Closes #1363
This commit is contained in:
emanuele-f 2018-02-22 15:26:30 +01:00
parent 85298201c7
commit 0f198dd638
10 changed files with 133 additions and 4 deletions

View file

@ -229,7 +229,7 @@ function printAlerts()
print('<tr id="row_alerts_informative_header" ')
if (showElements == false) then print(' style="display:none;"') end
print('><th colspan=2 class="info">'..i18n("prefs.devices_alerts")..'</th></tr>')
print('><th colspan=2 class="info">'..i18n("prefs.status_alerts")..'</th></tr>')
prefsToggleButton({
field = "toggle_device_first_seen_alert",
@ -247,6 +247,14 @@ function printAlerts()
redis_prefix = "ntopng.prefs.alerts.",
})
prefsToggleButton({
field = "toggle_pool_activation_alert",
pref = "pool_connection_alert",
default = "0",
hidden = not showElements,
redis_prefix = "ntopng.prefs.alerts.",
})
print('<tr id="row_alerts_retention_header" ')
if (showElements == false) then print(' style="display:none;"') end
print('><th colspan=2 class="info">'..i18n("prefs.alerts_retention")..'</th></tr>')