mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 12:35:02 +02:00
Fix workbench switcher (#2454)
Signed-off-by: Denis Maslennikov <denis.maslennikov@gmail.com>
This commit is contained in:
@@ -14,13 +14,26 @@
|
||||
-->
|
||||
<script lang="ts">
|
||||
import login from '@hcengineering/login'
|
||||
import { navigateToWorkspace, selectWorkspace, setLoginInfo, Workspace } from '@hcengineering/login-resources'
|
||||
import {
|
||||
getWorkspaces,
|
||||
navigateToWorkspace,
|
||||
selectWorkspace,
|
||||
setLoginInfo,
|
||||
Workspace
|
||||
} from '@hcengineering/login-resources'
|
||||
import { getEmbeddedLabel } from '@hcengineering/platform'
|
||||
import { Loading, locationToUrl, Menu, navigate } from '@hcengineering/ui'
|
||||
import { workbenchId } from '@hcengineering/workbench'
|
||||
import { onMount } from 'svelte'
|
||||
import workbench from '../plugin'
|
||||
|
||||
export let workspaces: Workspace[]
|
||||
let workspaces: Workspace[] = []
|
||||
|
||||
onMount(() => {
|
||||
getWorkspaces().then((ws: Workspace[]) => {
|
||||
workspaces = ws
|
||||
})
|
||||
})
|
||||
|
||||
$: actions = [
|
||||
...workspaces.map((w) => ({
|
||||
|
||||
Reference in New Issue
Block a user