Migrates Discord plugin as self-contained

This commit is contained in:
Simone Mainardi 2020-09-09 17:22:09 +02:00
parent 5e7f2cfff4
commit 20db316136
16 changed files with 49 additions and 218 deletions

View file

@ -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,