mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
refactor for endpoints and recipients (#4707)
This commit is contained in:
parent
06161556ac
commit
15772bd0fe
24 changed files with 129 additions and 117 deletions
|
|
@ -15,8 +15,8 @@ local plugins_utils = require("plugins_utils")
|
|||
local toasts_manager = require("toasts_manager")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_consts = require("alert_consts")
|
||||
local notification_configs = require("notification_configs")
|
||||
local endpoints = notification_configs.get_configs(true)
|
||||
local endpoint_configs = require("endpoints")
|
||||
local endpoints = endpoint_configs.get_configs(true)
|
||||
|
||||
if not haveAdminPrivileges() then
|
||||
return
|
||||
|
|
@ -42,7 +42,7 @@ page_utils.print_navbar(i18n("endpoint_notifications.recipient_list"), url, {
|
|||
})
|
||||
|
||||
-- localize endpoint name types in a table
|
||||
local endpoints_types = notification_configs.get_types()
|
||||
local endpoints_types = endpoint_configs.get_types()
|
||||
local endpoint_types_labels = {}
|
||||
-- create a table to filter recipient by endpoint's type
|
||||
local endpoint_type_filters = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue