|
|
@ -11,6 +11,8 @@ const route = router.currentRoute |
|
|
|
const { isUIAllowed } = useRoles() |
|
|
|
const { isUIAllowed } = useRoles() |
|
|
|
|
|
|
|
|
|
|
|
const workspaceStore = useWorkspace() |
|
|
|
const workspaceStore = useWorkspace() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { loadRoles } = useRoles() |
|
|
|
const { activeWorkspace: _activeWorkspace, workspaces } = storeToRefs(workspaceStore) |
|
|
|
const { activeWorkspace: _activeWorkspace, workspaces } = storeToRefs(workspaceStore) |
|
|
|
const { loadCollaborators, loadWorkspace } = workspaceStore |
|
|
|
const { loadCollaborators, loadWorkspace } = workspaceStore |
|
|
|
|
|
|
|
|
|
|
@ -28,6 +30,7 @@ const currentWorkspace = computedAsync(async () => { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
ws = _activeWorkspace.value |
|
|
|
ws = _activeWorkspace.value |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
await loadRoles(undefined, {}, ws?.id) |
|
|
|
return ws |
|
|
|
return ws |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|