fix saml and cli goto

This commit is contained in:
Ruben Fiszel
2024-02-14 12:46:34 +01:00
parent b81b095b61
commit fba6a7c246
2 changed files with 6 additions and 4 deletions
@@ -240,7 +240,10 @@
color="dark"
variant="border"
btnClasses="mt-2 w-full !border-gray-300"
on:click={() => saml && goto(saml)}
on:click={() => {
saml
window.location.href = saml
}}
>
SSO
</Button>
@@ -1,6 +1,4 @@
<script lang="ts">
import { goto } from '$app/navigation'
import { UserService } from '$lib/gen'
import { page } from '$app/stores'
import CenteredModal from '$lib/components/CenteredModal.svelte'
@@ -18,7 +16,8 @@
}
})
await goto('http://localhost:' + port + '?token=' + newToken + '&workspace=' + $workspaceStore)
const url = 'http://localhost:' + port + '?token=' + newToken + '&workspace=' + $workspaceStore
window.location.href = url
}
</script>