implemented wizard-likes messages for endpoints and recipients (#4658)

This commit is contained in:
gabryon99 2020-11-01 18:31:32 +01:00
parent 9d232d614c
commit 8dd860ea2a
10 changed files with 211 additions and 14 deletions

View file

@ -175,7 +175,45 @@ local defined_notifications = {
subpages = EMPTY_PAGES,
excluded_pages = EMPTY_PAGES,
excluded_subpages = EMPTY_PAGES
},
{
-- Hint to invite the user to create endpoints to send alert
id = 15,
dismissable = true,
predicate = predicates.create_endpoint,
pages = EMPTY_PAGES,
subpages = EMPTY_PAGES,
excluded_pages = {pages.endpoint_notifications.key, pages.preferences.key},
excluded_subpages = EMPTY_PAGES
},
{
-- Hint to invite the user to create recipients for the endpoints
id = 16,
dismissable = true,
predicate = predicates.create_recipients_for_endpoint,
pages = EMPTY_PAGES,
subpages = EMPTY_PAGES,
excluded_pages = {pages.endpoint_recipients.key},
excluded_subpages = EMPTY_PAGES
},
{
-- Hint to invite the user to bind the recipients to some pools
id = 17,
dismissable = true,
predicate = predicates.bind_recipient_to_pools,
pages = EMPTY_PAGES,
subpages = EMPTY_PAGES,
excluded_pages = {pages.manage_pools.key},
excluded_subpages = EMPTY_PAGES
}
}
--[[
- notifica 1, [se non ci sono endpoint != builtin], Crea un <link>endpoint</link> per inviare alert verso l'esterno
- notifica 2, [se non ci sono recipient != builtin], Crea un <link>recipient</link> per inviare alert verso l'esterno
- notifica 3 [se tutti i recipient != builtin non sono associati ad alcun pool], Associa i <link>recipient</link> ai <link>pool</link> per inviargli le alert
visto che valutare le condizioni tra [] potrebbe esser costoso se fatto ad ogni caricamento di pagina, se necessario, usa del caching
]]
return defined_notifications