Files
speckle-server/packages/frontend-2/components/projects/DashboardEmptyState.vue
T
Kristaps Fabians Geikins 5f88f562d3 feat: updated various "read/update" settings related permission checks (#4356)
* a bunch more tests

* updated GQL resolvers

* project create checks implemented

* project update/settings related checks in FE

* a bunch of tests

* tests fix

* disable app schema check
2025-04-09 16:13:09 +03:00

26 lines
771 B
Vue

<template>
<div class="flex justify-center flex-col text-center my-12">
<h2 class="text-heading mt-2 text-foreground">
{{ !canCreateProject ? 'No projects found' : 'Create your first project' }}
</h2>
<h4 class="text-body-xs mb-4 mt-2 max-w-xs mx-auto text-foreground-2">
Projects are the place where your models and their versions live.
</h4>
<div class="flex flex-col items-center gap-2">
<FormButton
v-if="canCreateProject"
color="outline"
class="shadow-lg"
@click="$emit('create-project')"
>
New project
</FormButton>
</div>
</div>
</template>
<script setup lang="ts">
defineProps<{ canCreateProject: boolean | undefined }>()
defineEmits(['create-project'])
</script>