From 3643f66b61ee92aa3818e25a654e98e6e40dd5c8 Mon Sep 17 00:00:00 2001 From: Ahmed Hakeem <65634467+Ahmed-Hakeem@users.noreply.github.com> Date: Mon, 11 Nov 2024 02:50:53 -0800 Subject: [PATCH] =?UTF-8?q?fix(graph):=20enable=20action=20on=20the=20View?= =?UTF-8?q?OnGraph=20button=20regardless=20of=20the=E2=80=A6=20(#28863)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Current Behavior ViewOnGraph button doesn't work until you open the accordion ## Expected Behavior ViewOnGraph button should direct to graph without the need to open the accordion first. I believe it's better from the UX prespective that user shouldn't click twice on the same button to fire its action. --- .../target-configuration-details-header.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/graph/ui-project-details/src/lib/target-configuration-details-header/target-configuration-details-header.tsx b/graph/ui-project-details/src/lib/target-configuration-details-header/target-configuration-details-header.tsx index 271d1c8384..cb74c76381 100644 --- a/graph/ui-project-details/src/lib/target-configuration-details-header/target-configuration-details-header.tsx +++ b/graph/ui-project-details/src/lib/target-configuration-details-header/target-configuration-details-header.tsx @@ -166,9 +166,6 @@ export const TargetConfigurationDetailsHeader = ({ data-tooltip={isCollasped ? false : 'View in Task Graph'} data-tooltip-align-right onClick={(e) => { - if (isCollasped) { - return; - } e.stopPropagation(); onViewInTaskGraph({ projectName, targetName }); }}