mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Rework alertEntity functions to avoid modules circular dependencies
Fixes #2975
This commit is contained in:
parent
19f820f1bc
commit
10aa5542f8
30 changed files with 112 additions and 86 deletions
|
|
@ -8,7 +8,7 @@ package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|||
require "lua_utils"
|
||||
require "alert_utils"
|
||||
require "flow_utils"
|
||||
|
||||
local alert_consts = require "alert_consts"
|
||||
local format_utils = require "format_utils"
|
||||
local json = require "dkjson"
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ for _key,_value in ipairs(alerts) do
|
|||
local alert_entity_val
|
||||
|
||||
if _value["alert_entity"] ~= nil then
|
||||
alert_entity = alertEntityLabel(_value["alert_entity"], true)
|
||||
alert_entity = alert_consts.alertEntityLabel(_value["alert_entity"], true)
|
||||
else
|
||||
alert_entity = "flow" -- flow alerts page doesn't have an entity
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue