From 93bb114e219c1935d2f35b6c9c87d215985376da Mon Sep 17 00:00:00 2001 From: Edouard Vanbelle Date: Sat, 8 Aug 2026 20:21:34 +0200 Subject: [PATCH] feat(oidc): admin / my account: correct style --- frontend/src/routes/profile/+page.svelte | 37 ++++++++++-------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/frontend/src/routes/profile/+page.svelte b/frontend/src/routes/profile/+page.svelte index 1d120b55..842a5bf8 100644 --- a/frontend/src/routes/profile/+page.svelte +++ b/frontend/src/routes/profile/+page.svelte @@ -502,7 +502,8 @@ } } - async function onConnectSso() { + async function onConnectSso(e: SubmitEvent) { + e.preventDefault(); ssoBusy = true; try { const url = await startOidcLink(); @@ -517,7 +518,8 @@ } } - async function onDisconnectSso() { + async function onDisconnectSso(e: SubmitEvent) { + e.preventDefault(); const ok = await confirmDialog({ title: t('profile.sso_disconnect_confirm_title', 'Disconnect Single Sign-On?'), message: t( @@ -1069,8 +1071,8 @@ email-match on link, no-alternative-auth refusal on unlink. --> {#if canConnectSso} -
-

{t('profile.sso_connect_title', 'Connect Single Sign-On')}

+
+

{t('profile.sso_connect_title', 'Connect Single Sign-On')}

{t( 'profile.sso_connect_description', @@ -1078,22 +1080,21 @@ 'Link your account to {{provider}} so you can sign in with SSO instead of your password.' )}

- -
+ {:else if canDisconnectSso} -
-

{t('profile.sso_disconnect_title', 'Single Sign-On')}

+
+

{t('profile.sso_disconnect_title', 'Single Sign-On')}

{t( 'profile.sso_disconnect_description', @@ -1101,16 +1102,10 @@ 'Your account is connected to {{provider}}. Disconnecting will require you to sign in with your password from now on.' )}

- -
+ {/if} {:else}

{t('common.loading', 'Loading…')}