fix(graph): enable action on the ViewOnGraph button regardless of the… (#28863)
## 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.
This commit is contained in:
parent
f56e0a30bf
commit
3643f66b61
@ -166,9 +166,6 @@ export const TargetConfigurationDetailsHeader = ({
|
|||||||
data-tooltip={isCollasped ? false : 'View in Task Graph'}
|
data-tooltip={isCollasped ? false : 'View in Task Graph'}
|
||||||
data-tooltip-align-right
|
data-tooltip-align-right
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
if (isCollasped) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
onViewInTaskGraph({ projectName, targetName });
|
onViewInTaskGraph({ projectName, targetName });
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user