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

ui: Reformat with elm-format 0.8.1

This commit is contained in:
James Hillyerd
2018-11-13 22:06:19 -08:00
parent ecd0c124d4
commit b67d5ba376
15 changed files with 48 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
module Main exposing (..)
module Main exposing (Model, Msg(..), Page(..), applySession, init, main, pageSubscriptions, sessionChange, setRoute, subscriptions, update, updatePage, view)
import Data.Session as Session exposing (Session, decoder)
import Html exposing (..)
@@ -13,6 +13,7 @@ import Route exposing (Route)
import Views.Page as Page exposing (ActivePage(..), frame)
-- MODEL
@@ -112,6 +113,7 @@ update msg model =
-- Responds to new browser URL.
if model.session.routing then
setRoute route model
else
-- Skip once, but re-enable routing.
( model, Cmd.none, Session.EnableRouting )
@@ -256,6 +258,7 @@ applySession ( model, cmd, sessionMsg ) =
if session.persistent == model.session.persistent then
-- No change
( newModel, cmd )
else
( newModel
, Cmd.batch [ cmd, Ports.storeSession session.persistent ]