Manage notification channels separately and migrate

It's more convenient to manage notification channels separately, as it
is done with email settings. Notification hook and other forms are
adopted to only select channels. Hooks can now use more than one
channel.
This commit is contained in:
eikek
2022-01-19 21:51:18 +01:00
parent d41490dd88
commit 23cb34a6ff
78 changed files with 2583 additions and 1422 deletions

View File

@ -13,15 +13,18 @@ module Messages.Comp.NotificationHookTable exposing
import Data.EventType exposing (EventType)
import Messages.Basics
import Messages.Data.ChannelType
import Messages.Data.EventType
type alias Texts =
{ basics : Messages.Basics.Texts
, eventType : EventType -> Messages.Data.EventType.Texts
, channelType : Messages.Data.ChannelType.Texts
, enabled : String
, channel : String
, events : String
, allEvents : String
}
@ -29,9 +32,11 @@ gb : Texts
gb =
{ basics = Messages.Basics.gb
, eventType = Messages.Data.EventType.gb
, channelType = Messages.Data.ChannelType.gb
, enabled = "Enabled"
, channel = "Channel"
, events = "Events"
, allEvents = "All"
}
@ -39,7 +44,9 @@ de : Texts
de =
{ basics = Messages.Basics.de
, eventType = Messages.Data.EventType.de
, channelType = Messages.Data.ChannelType.de
, enabled = "Aktiv"
, channel = "Kanal"
, events = "Ereignisse"
, allEvents = "Alle"
}