This commit is contained in:
Emily
2024-07-22 15:07:51 +02:00
parent 31c10b13b2
commit f3542f711b
8 changed files with 133 additions and 9 deletions

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
definePageMeta({ layout: 'dashboard' });
const { projects, refresh } = useProjectsList();
@@ -97,15 +96,25 @@ async function deleteAccount() {
{{ projects?.length ?? '-' }} / {{ maxProjects || 3 }}
</div>
</div>
<NuxtLink v-if="(projects?.length || 0) < (maxProjects || 3)" to="/project_creation"
<LyxUiButton type="primary">
<NuxtLink v-if="(projects?.length || 0) < (maxProjects || 3)" to="/project_creation">
Create new project
</NuxtLink>
</LyxUiButton>
<!-- <NuxtLink v-if="(projects?.length || 0) < (maxProjects || 3)" to="/project_creation"
class="bg-blue-500/20 hover:bg-blue-500/30 px-4 py-1 flex items-center gap-4 rounded-xl cursor-pointer">
<div class="h-full aspect-[1/1] flex items-center justify-center">
<i class="fas fa-plus text-[1rem] text-text-sub/80"></i>
</div>
<div>
<div class="text-text font-semibold manrope text-[1.3rem]"> Create new project</div>
<div class="text-text font-semibold manrope text-[1.3rem]">
Create new project
</div>
</div>
</NuxtLink>
</NuxtLink> -->
</div>
<div class="text-text/85 mt-8 poppis text-[1.2rem]" v-if="projects.length == 0">
@@ -115,6 +124,9 @@ async function deleteAccount() {
<div class="flex gap-12 flex-wrap" v-if="pid">
<div v-for="e of projects">
<LyxUiProjectSelector>
</LyxUiProjectSelector>
<DashboardProjectSelectionCard @click="onProjectClick(e._id.toString())"
:active="pid == e._id.toString()" :title="e.name"
:subtitle="pid == e._id.toString() ? 'ATTIVO' : ''"