596312ab0e
* 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>
29 lines
939 B
Vue
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>
|