From 553617f7f4c1faa807a67386ab548be1e7735b67 Mon Sep 17 00:00:00 2001 From: Nishit Suwal <81785002+NSUWAL123@users.noreply.github.com> Date: Thu, 18 Jul 2024 13:39:20 +0545 Subject: [PATCH] feat(frontend): add user to task popup (#1670) * fix(taskSelectionPopup): task locked username add if task is lockedForMapping * fix(dialogTaskActions): popup border UI fix --- .../src/components/DialogTaskActions.tsx | 61 +++++++++---------- .../ProjectDetailsV2/TaskSelectionPopup.tsx | 3 + 2 files changed, 33 insertions(+), 31 deletions(-) diff --git a/src/frontend/src/components/DialogTaskActions.tsx b/src/frontend/src/components/DialogTaskActions.tsx index 8d44c6f016..cd5288c36c 100755 --- a/src/frontend/src/components/DialogTaskActions.tsx +++ b/src/frontend/src/components/DialogTaskActions.tsx @@ -161,42 +161,41 @@ export default function Dialog({ taskId, feature }: dialogPropType) { } className="" /> - {list_of_task_status?.length > 0 && ( + {list_of_task_status?.length > 0 && checkIfTaskAssignedOrNot && (
- {checkIfTaskAssignedOrNot && - list_of_task_status?.map((data, index) => { - return list_of_task_status?.length != 0 ? ( -
)} {task_status !== 'READY' && task_status !== 'LOCKED_FOR_MAPPING' && ( diff --git a/src/frontend/src/components/ProjectDetailsV2/TaskSelectionPopup.tsx b/src/frontend/src/components/ProjectDetailsV2/TaskSelectionPopup.tsx index 0cd127de9b..df7e13b5e9 100644 --- a/src/frontend/src/components/ProjectDetailsV2/TaskSelectionPopup.tsx +++ b/src/frontend/src/components/ProjectDetailsV2/TaskSelectionPopup.tsx @@ -96,6 +96,9 @@ const TaskSelectionPopup = ({ taskId, body, feature }: TaskSelectionPopupPropTyp

Task: {selectedTask.index}

Status: {task_status}

+ {selectedTask?.locked_by_username && ( +

Locked By: {selectedTask?.locked_by_username}

+ )}
{checkIfTaskAssignedOrNot && task_status !== 'LOCKED_FOR_MAPPING' && (