Files
speckle-server/packages/frontend-2/components/projects/add-dialog/Workspace.vue
T
Kristaps Fabians Geikins 596312ab0e feat(frontend): personal project limit disclaimers & prompts (#4822)
* ProjectsAdd wrapper

* WorkspaceMoveProject wrapper added

* move wrapper finalized

* passing through location

* more cleanup

* model add wrapper

* permissions cleanup

* add invite wrapper

* vue-tippy bugfix

* ViewerLimitsDialog prep

* upgrade limit alert prep

* limit alerts

* movemanager fix

* new add flow

* slug update fix

* add model flow

* invites?

* some extra fixes

* move unmount fix?

* more fixes

* vue-tsc update

* style: remove h-32 for smaller screens

* vue-tsc parser fix

* prep for new viewer limits dialog

* updated viewer dialogs

* comment variant cleanup

* CR comments

---------

Co-authored-by: michalspeckle <michal@speckle.systems>
2025-05-28 12:12:18 +03:00

29 lines
939 B
Vue

<template>
<div class="flex flex-col gap-4">
<WorkspaceMoveProjectSelectWorkspace
:project="undefined"
:checker="(w) => w.permissions.canCreateProject"
subheading="New projects can only be created within a workspace."
@workspace-selected="onWorkspaceSelected"
/>
<FormButton color="outline" full-width @click="navigateTo(workspaceCreateRoute)">
Create a new workspace
</FormButton>
</div>
</template>
<script setup lang="ts">
import type { WorkspaceMoveProjectSelectWorkspace_WorkspaceFragment } from '~/lib/common/generated/gql/graphql'
import { workspaceCreateRoute } from '~/lib/common/helpers/route'
const emit = defineEmits<{
'workspace-selected': [WorkspaceMoveProjectSelectWorkspace_WorkspaceFragment]
canceled: []
}>()
const onWorkspaceSelected = (
workspace: WorkspaceMoveProjectSelectWorkspace_WorkspaceFragment
) => {
emit('workspace-selected', workspace)
}
</script>