tanishqgandhi1908 commented on code in PR #9367:
URL: https://github.com/apache/texera/pull/9367#discussion_r4531993949
##########
frontend/src/app/dashboard/service/user/workflow-version/workflow-version.service.ts:
##########
@@ -267,6 +267,21 @@ export class WorkflowVersionService {
this.setDisplayParticularVersion(false);
}
+ /**
+ * Drops a version preview still open when the workspace closes, so the next
workflow opened does
+ * not inherit it. The graph is left alone: the workflow is closing, and
reloading it here would
+ * reach the co-editing room only half done.
+ */
+ public discardOpenVersionDisplay(): void {
+ if (!this.displayParticularWorkflowVersion.getValue()) {
+ return;
+ }
+ this.workflowActionService.resetTempWorkflow();
+ this.workflowPersistService.setWorkflowPersistFlag(true);
+ this.modificationEnabledBeforeTempWorkflow = undefined;
Review Comment:
Good catch: a blank workflow never re-enables editing on its own. Applied,
and the test now checks it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]