From 8038a111dd7fa8f5d421b29c3bc0c11d865dc71b Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Fri, 6 Sep 2024 08:58:23 +0200 Subject: [PATCH] fix: show error message if error occurs while authorizing new client --- frontend/src/routes/authorize/+page.svelte | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/src/routes/authorize/+page.svelte b/frontend/src/routes/authorize/+page.svelte index 57213fd..0a5e453 100644 --- a/frontend/src/routes/authorize/+page.svelte +++ b/frontend/src/routes/authorize/+page.svelte @@ -83,16 +83,17 @@

Sign in to {client.name}

- {#if !authorizationRequired} + {#if errorMessage}

- {#if errorMessage} - {errorMessage}. Please try again. - {:else} - Do you want to sign in to {client.name} with your - {$applicationConfigurationStore.appName} account? - {/if} + {errorMessage}. Please try again.

- {:else} + {/if} + {#if !authorizationRequired && !errorMessage} +

+ Do you want to sign in to {client.name} with your + {$applicationConfigurationStore.appName} account? +

+ {:else if authorizationRequired}