diff --git a/frontend/src/components/project/views/ProjectKanban.vue b/frontend/src/components/project/views/ProjectKanban.vue index 5730fc3d3..249e76c93 100644 --- a/frontend/src/components/project/views/ProjectKanban.vue +++ b/frontend/src/components/project/views/ProjectKanban.vue @@ -208,6 +208,7 @@ class="kanban-card" :task="task" :loading="taskUpdating[task.id] ?? false" + :project-id="projectId" /> diff --git a/frontend/src/components/tasks/partials/KanbanCard.vue b/frontend/src/components/tasks/partials/KanbanCard.vue index 86c8795cc..ee4e05f26 100644 --- a/frontend/src/components/tasks/partials/KanbanCard.vue +++ b/frontend/src/components/tasks/partials/KanbanCard.vue @@ -19,19 +19,24 @@ class="tw-w-full" >
- - - - - +
+
+ + + +
+
+ {{ projectTitle }} +
+
(), { loading: false, @@ -127,6 +135,17 @@ const loadingInternal = ref(false) const color = computed(() => getHexColor(props.task.hexColor)) +const projectStore = useProjectStore() + +const projectTitle = computed(() => { + if (props.projectId === props.task.projectId) { + return false + } + + const project = projectStore.projects[props.task.projectId] + return project?.title +}) + async function toggleTaskDone(task: ITask) { loadingInternal.value = true try {