We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d17d04 commit 166e352Copy full SHA for 166e352
public/pages/workflow_detail/workflow_detail.tsx
@@ -132,9 +132,15 @@ export function WorkflowDetail(props: WorkflowDetailProps) {
132
// ones that will go to the home page, or different plugins within
133
// the side navigation.
134
const links = document.querySelectorAll(`a[href*="app/"]`);
135
- links.forEach((link) => {
136
- link.addEventListener('click', handleLinkClick);
137
- });
+ if (blockNavigation) {
+ links.forEach((link) => {
+ link.addEventListener('click', handleLinkClick);
138
+ });
139
+ } else {
140
141
+ link.removeEventListener('click', handleLinkClick);
142
143
+ }
144
return () => {
145
links.forEach((link) => {
146
link.removeEventListener('click', handleLinkClick);
0 commit comments