fix admins workspace link

This commit is contained in:
Ruben Fiszel
2023-02-13 15:05:27 +01:00
parent d97a3fb400
commit 06211b74b0
@@ -98,7 +98,12 @@
btnClasses="w-full mt-2 mb-4 truncate"
color="light"
size="sm"
href="/user/switch_to_admins{rd ? `?rd=${encodeURIComponent(rd)}` : ''}"
on:click={async () => {
workspaceStore.set('admins')
loading = true
await goto(rd ?? '/')
loading = false
}}
variant="border"
>Manage Windmill on the superadmins workspace
</Button>