From ca67dc6e81311afebab430b95d5732808ae1c372 Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Fri, 22 Feb 2019 13:18:05 +0100 Subject: [PATCH] Show loading screen when signing in and redirect to index when signing out --- src/Applications/UI.elm | 1 + src/Applications/UI/Authentication.elm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Applications/UI.elm b/src/Applications/UI.elm index 2fee0d58..6134e329 100644 --- a/src/Applications/UI.elm +++ b/src/Applications/UI.elm @@ -243,6 +243,7 @@ update msg model = } |> update (AuthenticationMsg Authentication.DischargeMethod) |> R2.addCmd alienSigningOut + |> R2.addCmd (Nav.pushUrl model.navKey "/") ----------------------------------------- -- Children diff --git a/src/Applications/UI/Authentication.elm b/src/Applications/UI/Authentication.elm index da78ec2f..0664a36f 100644 --- a/src/Applications/UI/Authentication.elm +++ b/src/Applications/UI/Authentication.elm @@ -5,6 +5,7 @@ import Authentication import Chunky exposing (..) import Color exposing (Color) import Color.Ext as Color +import Common exposing (Switch(..)) import Conditional exposing (..) import Css exposing (pct, px, solid, transparent) import Html.Styled as Html exposing (Html, a, button, div, em, fromUnstyled, img, span, text) @@ -71,7 +72,7 @@ update msg model = |> Json.Encode.string |> Alien.broadcast Alien.SignIn |> Ports.toBrain - , Nothing + , Just [ ToggleLoadingScreen On ] ) ----------------------------------------- -- 2.51.2