diff --git a/ui/src/components/NewIssueDialog.tsx b/ui/src/components/NewIssueDialog.tsx index a734fbd5..ad8efb67 100644 --- a/ui/src/components/NewIssueDialog.tsx +++ b/ui/src/components/NewIssueDialog.tsx @@ -1117,51 +1117,49 @@ export function NewIssueDialog() { - {currentProject && ( + {currentProject && currentProjectSupportsExecutionWorkspace && (
- {currentProjectSupportsExecutionWorkspace && ( -
-
Execution workspace
-
- Control whether this issue runs in the shared workspace, a new isolated workspace, or an existing one. -
+
+
Execution workspace
+
+ Control whether this issue runs in the shared workspace, a new isolated workspace, or an existing one. +
+ + {executionWorkspaceMode === "reuse_existing" && ( - {executionWorkspaceMode === "reuse_existing" && ( - - )} - {executionWorkspaceMode === "reuse_existing" && selectedReusableExecutionWorkspace && ( -
- Reusing {selectedReusableExecutionWorkspace.name} from {selectedReusableExecutionWorkspace.branchName ?? selectedReusableExecutionWorkspace.cwd ?? "existing execution workspace"}. -
- )} -
- )} + )} + {executionWorkspaceMode === "reuse_existing" && selectedReusableExecutionWorkspace && ( +
+ Reusing {selectedReusableExecutionWorkspace.name} from {selectedReusableExecutionWorkspace.branchName ?? selectedReusableExecutionWorkspace.cwd ?? "existing execution workspace"}. +
+ )} +
)}