diff options
author | Joris | 2016-08-21 14:30:40 +0200 |
---|---|---|
committer | Joris | 2016-08-21 14:30:40 +0200 |
commit | 75804df1cb231033f94183e41cdf79d36d8f6710 (patch) | |
tree | 48b7932285091fdbdaba6d77586859c1e1750ce0 /src/client/elm/SignIn | |
parent | 3889d21ab58fbbc0134854b95013196a82e8d510 (diff) |
Show a message if there is an error during a server request
Diffstat (limited to 'src/client/elm/SignIn')
-rw-r--r-- | src/client/elm/SignIn/Update.elm | 2 | ||||
-rw-r--r-- | src/client/elm/SignIn/View.elm | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/client/elm/SignIn/Update.elm b/src/client/elm/SignIn/Update.elm index 7ada45c..98de777 100644 --- a/src/client/elm/SignIn/Update.elm +++ b/src/client/elm/SignIn/Update.elm @@ -21,7 +21,7 @@ update translations msg signInView = ValidLogin -> { signInView | login = "" - , result = Just (Ok (getMessage "SignInEmailSent" translations)) + , result = Just (Ok (getMessage translations "SignInEmailSent")) , waitingServer = False } ErrorLogin message -> diff --git a/src/client/elm/SignIn/View.elm b/src/client/elm/SignIn/View.elm index daaa527..f23ca09 100644 --- a/src/client/elm/SignIn/View.elm +++ b/src/client/elm/SignIn/View.elm @@ -38,7 +38,7 @@ view model signInModel = [] [ if signInModel.waitingServer then FontAwesome.spinner Color.white 20 - else text (getMessage "SignIn" model.translations) + else text (getMessage model.translations "SignIn") ] ] , div @@ -54,10 +54,10 @@ signInResult model signInModel = Ok login -> div [ class "success" ] - [ text (getMessage "SignInEmailSent" model.translations) ] + [ text (getMessage model.translations "SignInEmailSent") ] Err error -> div [ class "error" ] - [ text (getMessage error model.translations) ] + [ text (getMessage model.translations error) ] Nothing -> text "" |