Move alerts from preferences to user scripts

Implements #4614
This commit is contained in:
Simone Mainardi 2020-10-22 16:52:12 +02:00
parent 2e29a8d246
commit c9ca37e82e
3 changed files with 0 additions and 16 deletions

View file

@ -285,17 +285,6 @@ function printAlerts()
hidden = not showElements or subpage_active.entries["toggle_mysql_check_open_files_limit"].hidden,
})
print('<thead class="thead-light"><tr id="row_alerts_security_header" ')
if (showElements == false) then print(' style="display:none;"') end
print('><th colspan=2 class="info">'..i18n("prefs.security_alerts")..'</th></tr></thead>')
prefsToggleButton(subpage_active, {
field = "toggle_ip_reassignment_alerts",
pref = "ip_reassignment_alerts",
default = "0",
hidden = not showElements,
})
print('<thead class="thead-light"><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></thead>')