This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch
gh-readonly-queue/release/v1.2/pr-9167-4f64f4bfae8f7c81e3f7be2b561e2594f9699bd2
in repository https://gitbox.apache.org/repos/asf/texera.git
commit 70bdaa3a3129d5581d6816ab04d69d86381515b9
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 10 02:36:05 2026 +0000
fix(frontend, v1.2): block clicks on disabled context menu items (#9167)
### What changes were proposed in this PR?
Automated backport of #8968 to `release/v1.2`.
Source: 93438d13fb8c34052ce3552380f65043e1a24a38 ยท [automation
run](https://github.com/apache/texera/actions/runs/40448223973)
### Any related issues, documentation, discussions?
Backport of #8968. Originally linked #8966.
### How was this PR tested?
Release-branch CI runs on this branch once the conflicts are resolved
and this PR is marked ready for review.
### Was this PR authored or co-authored using generative AI tooling?
No.
---------
Co-authored-by: Eugene Gu <[email protected]>
Co-authored-by: Kunwoo (Chris) <[email protected]>
Co-authored-by: Xuan Gu <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../context-menu/context-menu/context-menu.component.html | 5 ++---
.../context-menu/context-menu/context-menu.component.ts | 9 +++++++++
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git
a/frontend/src/app/workspace/component/workflow-editor/context-menu/context-menu/context-menu.component.html
b/frontend/src/app/workspace/component/workflow-editor/context-menu/context-menu/context-menu.component.html
index 4465d65cb2..5ac37d7bce 100644
---
a/frontend/src/app/workspace/component/workflow-editor/context-menu/context-menu/context-menu.component.html
+++
b/frontend/src/app/workspace/component/workflow-editor/context-menu/context-menu/context-menu.component.html
@@ -104,8 +104,7 @@
nz-menu-item
[nzDisabled]="true"
*ngIf="(operatorMenuService.isMarkForReuse &&
operatorMenuService.isReuseResultClickable) &&
- !hasHighlightedLinks()"
- (click)="operatorMenuService.reuseResultHighlightedOperator()">
+ !hasHighlightedLinks()">
<span
nz-icon
nzType="database"
@@ -157,7 +156,7 @@
highlightedCommentBoxIds.length === 0 &&
!hasHighlightedLinks()"
[nzDisabled]="!canExecuteOperator()"
- (click)="operatorMenuService.executeUpToOperator()">
+ (click)="onExecuteUpToOperator()">
<span
nz-icon
nzType="play-circle"
diff --git
a/frontend/src/app/workspace/component/workflow-editor/context-menu/context-menu/context-menu.component.ts
b/frontend/src/app/workspace/component/workflow-editor/context-menu/context-menu/context-menu.component.ts
index 019f77f7af..ea0b318551 100644
---
a/frontend/src/app/workspace/component/workflow-editor/context-menu/context-menu/context-menu.component.ts
+++
b/frontend/src/app/workspace/component/workflow-editor/context-menu/context-menu/context-menu.component.ts
@@ -90,6 +90,15 @@ export class ContextMenuComponent {
return
this.workflowActionService.getJointGraphWrapper().getCurrentHighlightedLinkIDs().length
> 0;
}
+ /** Runs the workflow up to the highlighted operator when the menu item is
enabled. */
+ public onExecuteUpToOperator(): void {
+ // nzDisabled only greys the item out; it does not stop the template
(click).
+ if (!this.canExecuteOperator()) {
+ return;
+ }
+ this.operatorMenuService.executeUpToOperator();
+ }
+
public onCopy(): void {
this.operatorMenuService.saveHighlightedElements();
}