From 3eb5ed62b6fd8b734962199b4f0714f3e8368545 Mon Sep 17 00:00:00 2001 From: Dawid Urbas Date: Fri, 19 Jul 2024 10:34:35 +0200 Subject: [PATCH] Add loading state when sign up --- .../webapp-extension/create-key/+page.svelte | 106 +++++++++--------- 1 file changed, 55 insertions(+), 51 deletions(-) diff --git a/holo-key-manager-extension/src/routes/webapp-extension/create-key/+page.svelte b/holo-key-manager-extension/src/routes/webapp-extension/create-key/+page.svelte index b24613c..c602072 100644 --- a/holo-key-manager-extension/src/routes/webapp-extension/create-key/+page.svelte +++ b/holo-key-manager-extension/src/routes/webapp-extension/create-key/+page.svelte @@ -1,5 +1,5 @@ -
- Holo Logo -

Sign up

- -
+{#if $applicationKeyMutation.isPending} + +{:else} +
+ Holo Logo +

Sign up

+ +
-{#if $extractDetailsFromUrl.requireEmail} - -{/if} -{#if $extractDetailsFromUrl.requireRegistrationCode} - -{/if} - + {#if $extractDetailsFromUrl.requireEmail} + + {/if} + {#if $extractDetailsFromUrl.requireRegistrationCode} + + {/if} + -{#if $applicationKeyMutation.error} -
-

Error: {$applicationKeyMutation.error.message}

-
-{/if} + {#if $applicationKeyMutation.error} +
+

Error: {$applicationKeyMutation.error.message}

+
+ {/if} -