Skip to content

Commit

Permalink
fix: opened flow in new tab [WTEL-4509]
Browse files Browse the repository at this point in the history
  • Loading branch information
Lera24 committed May 3, 2024
1 parent d0ebdd3 commit 0078959
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/modules/routing/modules/flow/components/opened-flow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,16 @@ export default {
},
mounted() {
this.initType();
if(!this.isDiagram) this.addCheckingUnsavedChanges();
if(!this.isDiagram) {
this.addCheckingUnsavedChanges();
} else {
// [https://webitel.atlassian.net/browse/WTEL-4509]
// Temporary solution - open in a new browser tab Flow diagram and clear itemInstance
this.resetState();

Check notice on line 205 in src/modules/routing/modules/flow/components/opened-flow.vue

View workflow job for this annotation

GitHub Actions / Qodana for JS

Signature mismatch

Invalid number of arguments, expected 1
this.closePage();
}
},
};
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ export default {
const flowId = this.$route.params.id || 'new';
const flowType = this.$route.query.type || '';
const redirectUrl = `${import.meta.env.VITE_FLOW_DIAGRAM_URL}/${flowId}/${flowType}`;
window.location.replace(redirectUrl);
// [https://webitel.atlassian.net/browse/WTEL-4509]
// Temporary solution - open in a new browser tab Flow diagram
// window.location.replace(redirectUrl);
window.open(redirectUrl, '_blank');
},
};
</script>
Expand Down

0 comments on commit 0078959

Please sign in to comment.