1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-01-27 05:25:58 +00:00

ui: Refactor update and setRoute with updateWith

This commit is contained in:
James Hillyerd
2018-11-22 22:02:01 -08:00
parent 0c9cf81c94
commit e71377f966
5 changed files with 69 additions and 87 deletions

View File

@@ -77,10 +77,11 @@ type alias Model =
}
init : String -> Maybe MessageID -> ( Model, Cmd Msg )
init : String -> Maybe MessageID -> ( Model, Cmd Msg, Session.Msg )
init mailboxName selection =
( Model mailboxName (LoadingList selection) SafeHtmlBody "" (Time.millisToPosix 0)
, load mailboxName
, Session.none
)