diff options
author | Joris | 2016-01-03 00:19:55 +0100 |
---|---|---|
committer | Joris | 2016-01-03 00:28:41 +0100 |
commit | 0cba27cba2b44756389d50bc113f23a2be87e978 (patch) | |
tree | cc13e5ba32e3e2ec8bad284828a06d5daedec4f7 /src/client/elm/View/SignIn.elm | |
parent | fc9a3ca6a5226f78a3a0ec51af3d8d287ccb2e1b (diff) |
Prevent to send multiple payments if the server is not answering
Diffstat (limited to 'src/client/elm/View/SignIn.elm')
-rw-r--r-- | src/client/elm/View/SignIn.elm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/elm/View/SignIn.elm b/src/client/elm/View/SignIn.elm index ba16561..4b9f2bb 100644 --- a/src/client/elm/View/SignIn.elm +++ b/src/client/elm/View/SignIn.elm @@ -25,9 +25,12 @@ renderSignIn address model signInView = div [ class "signIn" ] [ button - [ onClick operations.address Persona.SignIn ] + ( if signInView.waitingServer + then [] + else [ onClick operations.address Persona.SignIn ] + ) [ span [] [ text (getMessage "SignIn" model.translations) ] - , if signInView.connecting + , if signInView.waitingServer then renderSpinIcon else renderIcon "power-off" ] |