ZoneInterface outputs are taken care of.
This commit is contained in:
parent
b178a830cc
commit
f9ab384d06
@ -30,6 +30,7 @@ data Action
|
||||
| DomainListComponentEvent DomainListInterface.Output
|
||||
| AuthenticationDaemonEvent WS.Output
|
||||
| DNSManagerDaemonEvent WS.Output
|
||||
| ZoneInterfaceEvent ZoneInterface.Output
|
||||
| AuthenticateToDNSManager
|
||||
| Routing Page
|
||||
|
||||
@ -92,7 +93,7 @@ render state
|
||||
-- TODO
|
||||
render_home = render_nothing
|
||||
|
||||
render_zone domain = Bulma.box [ HH.slot_ _zi unit ZoneInterface.component domain ]
|
||||
render_zone domain = Bulma.box [ HH.slot _zi unit ZoneInterface.component domain ZoneInterfaceEvent]
|
||||
|
||||
authenticated = case state.token of
|
||||
Nothing -> false
|
||||
@ -170,6 +171,11 @@ handleAction = case _ of
|
||||
state <- H.get
|
||||
H.tell _aai unit (AAI.ProvideState state.store_AuthenticationDaemonAdmin_state)
|
||||
|
||||
ZoneInterfaceEvent ev -> case ev of
|
||||
ZoneInterface.MessageToSend message -> H.tell _ws_dns unit (WS.ToSend message)
|
||||
ZoneInterface.Log message -> H.tell _log unit (Log.Log message)
|
||||
ZoneInterface.DNSManagerReconnect -> handleAction AuthenticateToDNSManager
|
||||
|
||||
DomainListComponentEvent ev -> case ev of
|
||||
DomainListInterface.MessageToSend message -> H.tell _ws_dns unit (WS.ToSend message)
|
||||
DomainListInterface.Log message -> H.tell _log unit (Log.Log message)
|
||||
|
Loading…
Reference in New Issue
Block a user