mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 16:02:28 +00:00
fix saml and cli goto
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user