mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-12 08:05:44 +00:00
feat(frontend): add workspace to ctx
This commit is contained in:
@@ -70,7 +70,8 @@
|
||||
email: $userStore?.email,
|
||||
username: $userStore?.username,
|
||||
query: Object.fromEntries($page.url.searchParams.entries()),
|
||||
hash: $page.url.hash
|
||||
hash: $page.url.hash,
|
||||
workspace: $workspaceStore
|
||||
}
|
||||
|
||||
const worldStore = buildWorld(context)
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
allIdsInPath
|
||||
})
|
||||
|
||||
let ncontext = context
|
||||
let ncontext: any = { ...context, workspace }
|
||||
|
||||
function hashchange(e: HashChangeEvent) {
|
||||
ncontext.hash = e.newURL.split('#')[1]
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
<div class="relative">
|
||||
<div
|
||||
class="{$$props.class} {lockedClasses} h-full
|
||||
class="{$$props.class} {lockedClasses} h-full
|
||||
w-full {app.fullscreen ? '' : 'max-w-6xl'} mx-auto"
|
||||
>
|
||||
{#if $appStore.grid}
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
isEditor={false}
|
||||
context={{
|
||||
username: $userStore?.username ?? 'anonymous',
|
||||
email: $userStore?.email ?? 'anonymous'
|
||||
email: $userStore?.email ?? 'anonymous',
|
||||
}}
|
||||
summary={appViewerApp?.app.summary ?? ''}
|
||||
noBackend
|
||||
|
||||
Reference in New Issue
Block a user