mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Hide MySQL and traffic bridge preferences when not applicable
This commit is contained in:
parent
aa7bab5fee
commit
d56b05136e
4 changed files with 40 additions and 13 deletions
|
|
@ -151,7 +151,7 @@ function printAlerts()
|
|||
false, nil, nil, showElements)
|
||||
|
||||
toggleTableButtonPrefs(subpage_active.entries["toggle_mysql_check_open_files_limit"].title, subpage_active.entries["toggle_mysql_check_open_files_limit"].description,
|
||||
"On", "1", "success", "Off", "0", "danger", "toggle_mysql_check_open_files_limit", "ntopng.prefs.mysql_check_open_files_limit", "1")
|
||||
"On", "1", "success", "Off", "0", "danger", "toggle_mysql_check_open_files_limit", "ntopng.prefs.mysql_check_open_files_limit", "1", nil, nil, nil, not (subpage_active.entries["toggle_mysql_check_open_files_limit"].hidden))
|
||||
|
||||
print('<tr id="row_alerts_security_header" ')
|
||||
if (showElements == false) then print(' style="display:none;"') end
|
||||
|
|
@ -586,7 +586,7 @@ function printStatsTimeseries()
|
|||
|
||||
mysql_retention = 7
|
||||
prefsInputFieldPrefs(subpage_active.entries["mysql_retention"].title, subpage_active.entries["mysql_retention"].description .. "-F mysql;<host|socket>;<dbname>;<table name>;<user>;<pw>.",
|
||||
"ntopng.prefs.", "mysql_retention", mysql_retention, "number", nil, nil, nil, {min=1, max=365*5, --[[ TODO check min/max ]]})
|
||||
"ntopng.prefs.", "mysql_retention", mysql_retention, "number", not subpage_active.entries["mysql_retention"].hidden, nil, nil, {min=1, max=365*5, --[[ TODO check min/max ]]})
|
||||
|
||||
--default value
|
||||
minute_top_talkers_retention = 365
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue