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