From 608ea96cc8b2fb0a740d683bf55165965503092f Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Wed, 24 Apr 2024 19:19:32 +0300 Subject: [PATCH] Fixed workbench for guests (#5459) Signed-off-by: Alexander Platov --- .../src/components/Guest.svelte | 18 +++++++++++++++--- plugins/guest-resources/src/index.ts | 3 +++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/plugins/guest-resources/src/components/Guest.svelte b/plugins/guest-resources/src/components/Guest.svelte index bfdd67fba8..77524d1e1a 100644 --- a/plugins/guest-resources/src/components/Guest.svelte +++ b/plugins/guest-resources/src/components/Guest.svelte @@ -34,6 +34,7 @@ getLocation, navigate, openPanel, + defineSeparators, setResolvedLocation } from '@hcengineering/ui' import view from '@hcengineering/view' @@ -42,6 +43,7 @@ import { SpaceView, buildNavModel } from '@hcengineering/workbench-resources' import guest from '../plugin' import { checkAccess } from '../utils' + import { workbenchGuestSeparators } from '..' const excludedApps = getMetadata(workbench.metadata.ExcludedApplications) ?? [] @@ -263,14 +265,16 @@ } } + defineSeparators('workbenchGuest', workbenchGuestSeparators) + let aside: HTMLElement let cover: HTMLElement {#await load() then res} {#if res} -
-
+
+
{#if currentApplication && currentApplication.component} @@ -296,7 +300,7 @@ {#if asideId} {@const asideComponent = navigatorModel?.aside ?? currentApplication?.aside} {#if asideComponent !== undefined} - +
@@ -326,6 +330,14 @@ {/await}