Files
Lesstime/frontend/pages/projects/[id]/statuses.vue
matthieu 50ae9ef549 feat(projects) : add per-project task statuses and split project detail into sub-pages
Move project detail from [id].vue to [id]/ directory with Kanban, Groups
and Statuses sub-pages. Add project filter on task statuses service and
drawer. Remove global statuses tab from admin.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 21:58:35 +01:00

33 lines
815 B
Vue

<template>
<div>
<div class="flex items-center justify-between">
<h1 class="text-2xl font-bold text-neutral-900">{{ project?.name ?? '' }} Statuts</h1>
</div>
<div class="mt-6">
<ProjectStatusTab :project-id="projectId" />
</div>
</div>
</template>
<script setup lang="ts">
import type { Project } from '~/services/dto/project'
import { useProjectService } from '~/services/projects'
const route = useRoute()
const projectId = computed(() => Number(route.params.id))
useHead({ title: 'Statuts du projet' })
const projectService = useProjectService()
const project = ref<Project | null>(null)
async function loadProject() {
project.value = await projectService.getById(projectId.value)
}
onMounted(() => {
loadProject()
})
</script>