Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: opened flow in new tab [WTEL-4509] #660

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
},
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
Loading