mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Migrates Discord plugin as self-contained
This commit is contained in:
parent
5e7f2cfff4
commit
20db316136
16 changed files with 49 additions and 218 deletions
|
|
@ -47,8 +47,8 @@ local endpoints_types = notification_configs.get_types(true --[[ exclude builtin
|
|||
local endpoint_types_labels = {}
|
||||
-- create a table to filter recipient by endpoint's type
|
||||
local endpoint_type_filters = {}
|
||||
for endpoint_key, _ in pairs(endpoints_types) do
|
||||
local label = i18n('endpoint_notifications.types.'..endpoint_key)
|
||||
for endpoint_key, endpoint in pairs(endpoints_types) do
|
||||
local label = i18n('endpoint_notifications.types.'..endpoint_key) or endpoint.name
|
||||
endpoint_types_labels[endpoint_key] = label
|
||||
endpoint_type_filters[#endpoint_type_filters+1] = {
|
||||
label = label,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue