diff options
author | Joris | 2016-06-19 21:18:56 +0200 |
---|---|---|
committer | Joris | 2016-06-21 12:49:51 +0200 |
commit | 36a90770ebeb9bd99e136bfe035fdda5dfabc304 (patch) | |
tree | 42b605108f4b8b731fecd65b028006aa41399f40 /src/client/elm/Model.elm | |
parent | fb5629d7f705b7e80dcf1852da58d2864c2b0d25 (diff) | |
download | budget-36a90770ebeb9bd99e136bfe035fdda5dfabc304.tar.gz budget-36a90770ebeb9bd99e136bfe035fdda5dfabc304.tar.bz2 budget-36a90770ebeb9bd99e136bfe035fdda5dfabc304.zip |
Add a dialog to confirm income deletion
Diffstat (limited to 'src/client/elm/Model.elm')
-rw-r--r-- | src/client/elm/Model.elm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/elm/Model.elm b/src/client/elm/Model.elm index 9e9cdbb..3eec89d 100644 --- a/src/client/elm/Model.elm +++ b/src/client/elm/Model.elm @@ -6,6 +6,8 @@ module Model exposing import Time exposing (Time) import Json.Decode as Json +import Html.App as Html + import Page exposing (Page) import Init as Init exposing (Init) import Msg exposing (Msg) @@ -15,8 +17,8 @@ import Model.Translations exposing (..) import Model.Conf exposing (..) import Model.InitResult exposing (..) import LoggedIn.Model as LoggedInModel - import SignIn.Model as SignInModel +import Dialog import Utils.Maybe exposing (isJust) @@ -26,6 +28,7 @@ type alias Model = , translations : Translations , conf : Conf , page : Page + , dialog : Dialog.Model View Msg } init : Json.Value -> Result String Page -> (Model, Cmd Msg) @@ -49,6 +52,7 @@ init payload result = , translations = translations , conf = conf , page = page + , dialog = Dialog.init Msg.Dialog } Err error -> { view = SignInView (SignInModel.init (Just error)) @@ -56,5 +60,6 @@ init payload result = , translations = [] , conf = { currency = "" } , page = page + , dialog = Dialog.init Msg.Dialog } in (model, Cmd.none) |