From 2ab35f7950f9bdad35ce5ec2f4aea8cdb90dc14a Mon Sep 17 00:00:00 2001 From: Frank Rousseau Date: Fri, 24 Nov 2023 11:18:36 +0100 Subject: [PATCH] [tasks] Change link in entity pages The task type name sends to the task page instead of the task type page --- src/components/cells/TaskTypeCell.vue | 5 +++ src/components/lists/EntityTaskList.vue | 1 + src/components/widgets/TaskTypeName.vue | 47 +++++++++++++++++++------ 3 files changed, 42 insertions(+), 11 deletions(-) diff --git a/src/components/cells/TaskTypeCell.vue b/src/components/cells/TaskTypeCell.vue index f6d240aa13..4bf41e6466 100644 --- a/src/components/cells/TaskTypeCell.vue +++ b/src/components/cells/TaskTypeCell.vue @@ -3,6 +3,7 @@ @@ -20,6 +21,10 @@ export default { }, props: { + taskId: { + type: String, + default: null + }, taskType: { type: Object, default: null diff --git a/src/components/lists/EntityTaskList.vue b/src/components/lists/EntityTaskList.vue index 2b6fe6e681..6a5d622476 100644 --- a/src/components/lists/EntityTaskList.vue +++ b/src/components/lists/EntityTaskList.vue @@ -54,6 +54,7 @@ class="type" :task-type="getTaskType(taskId)" :production-id="currentProduction.id" + :task-id="taskId" v-if="getTaskType(taskId)" /> diff --git a/src/components/widgets/TaskTypeName.vue b/src/components/widgets/TaskTypeName.vue index ab06c958ed..b1228cf95c 100644 --- a/src/components/widgets/TaskTypeName.vue +++ b/src/components/widgets/TaskTypeName.vue @@ -1,5 +1,5 @@