1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

ui: Add greeting.html to Home

This commit is contained in:
James Hillyerd
2018-11-12 20:21:37 -08:00
parent d1954cdd6f
commit 2bbcef072a
6 changed files with 61 additions and 29 deletions

View File

@@ -36,8 +36,11 @@ init sessionValue location =
session =
Session.init location (Session.decodeValueWithDefault sessionValue)
( subModel, _ ) =
Home.init
model =
{ page = Home Home.init
{ page = Home subModel
, session = session
, mailboxName = ""
}
@@ -182,8 +185,12 @@ setRoute route model =
( model, Cmd.none, Session.SetFlash ("Unknown route requested: " ++ hash) )
Route.Home ->
( { model | page = Home Home.init }
, Ports.windowTitle "Inbucket"
let
( subModel, subCmd ) =
Home.init
in
( { model | page = Home subModel }
, Cmd.map HomeMsg subCmd
, Session.none
)