diff options
Diffstat (limited to 'app/src/routes/+page.svelte')
| -rw-r--r-- | app/src/routes/+page.svelte | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/routes/+page.svelte b/app/src/routes/+page.svelte index ee4148b..b12c471 100644 --- a/app/src/routes/+page.svelte +++ b/app/src/routes/+page.svelte @@ -12,7 +12,8 @@ dryRun: true, }); - async function run() { + async function run(e: SubmitEvent) { + e.preventDefault(); if (!form.mappings.length) { return; } @@ -21,8 +22,7 @@ async function authorize() { navigating = true; - const url = await init_auth_session(); - location.href = url; + location.href = await init_auth_session(); } async function logout() { @@ -74,6 +74,7 @@ </form> <h3>Annet</h3> <Button onclick={logout} loading={navigating}>Logg ut</Button> + <div></div> {:else} <Button onclick={authorize} loading={navigating}>Autentisér hos Sparebanken 1</Button> {/if} |
