From 1aa729c2128c0e35fc623d2ca206f4a6ad44bf8f Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 14 Jun 2024 17:02:01 +0200 Subject: [PATCH] add loading animation for oauth2 --- src/routes/login/+page.svelte | 37 ++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/src/routes/login/+page.svelte b/src/routes/login/+page.svelte index c02731b0..e1a45c5a 100644 --- a/src/routes/login/+page.svelte +++ b/src/routes/login/+page.svelte @@ -7,9 +7,11 @@ import { numberOfUnreadNotification } from '$lib/store'; export let form; - + let loading = false; + let oauthLoading = false; + const submitLogin = () => { loading = true; return async ({ result, update}) => { @@ -92,7 +94,7 @@ -
+
@@ -141,23 +143,25 @@ Or login using
-
+
-
-
@@ -172,13 +176,24 @@
- + +
+
- + + {#if oauthLoading} +
+
+ +
+
+ {/if}