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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user