From 82769e3c201ff0f44bb3f10bee12aa2e07a44e53 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Fri, 22 Jul 2022 21:06:20 +0200 Subject: [PATCH] Show button transition. --- examples/smoothies/app/Route/Login.elm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/smoothies/app/Route/Login.elm b/examples/smoothies/app/Route/Login.elm index 8ea4e779..e8331aca 100644 --- a/examples/smoothies/app/Route/Login.elm +++ b/examples/smoothies/app/Route/Login.elm @@ -101,7 +101,11 @@ form = [ username |> fieldView info "Username" ] , Html.button [] - [ Html.text "Login" + [ if info.isTransitioning then + Html.text "Logging in..." + + else + Html.text "Login" ] ] }