mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Avoid timeseries read operations to display the chart icon
Now the icon is displayed whenever the timeseries are enabled for the given context
This commit is contained in:
parent
5b70db90ad
commit
d1140ec9fd
42 changed files with 201 additions and 149 deletions
|
|
@ -1396,12 +1396,11 @@ function toggleAlert(disable) {
|
|||
end
|
||||
|
||||
local status_reset = (status == nil)
|
||||
local ts_utils = require "ts_utils"
|
||||
|
||||
if(has_engaged_alerts) then
|
||||
alert_items[#alert_items + 1] = {
|
||||
["label"] = i18n("show_alerts.engaged_alerts"),
|
||||
["chart"] = ternary(ts_utils.exists("iface:engaged_alerts", {ifid = ifid}), "iface:engaged_alerts", ""),
|
||||
["chart"] = ternary(areInterfaceTimeseriesEnabled(ifid), "iface:engaged_alerts", ""),
|
||||
["div-id"] = "table-engaged-alerts", ["status"] = "engaged"}
|
||||
elseif status == "engaged" then
|
||||
status = nil; status_reset = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue