@idsoftsource/initial-process 2.4.5 → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4563,6 +4563,7 @@ class PreviewComponent {
|
|
|
4563
4563
|
// Clear session so a future return to this page starts fresh from T&C
|
|
4564
4564
|
sessionStorage.removeItem(`ip_init_${this.payloadUserId}`);
|
|
4565
4565
|
this.store.resetAll();
|
|
4566
|
+
sessionStorage.setItem('ip_navigating_out', 'true');
|
|
4566
4567
|
window.location.href = this.libConfig.dashboardUrl;
|
|
4567
4568
|
}
|
|
4568
4569
|
catch (err) {
|
|
@@ -9514,6 +9515,7 @@ class ToolsComponent {
|
|
|
9514
9515
|
sessionStorage.removeItem('ip_init');
|
|
9515
9516
|
setTimeout(() => {
|
|
9516
9517
|
this.homeLoader = false;
|
|
9518
|
+
sessionStorage.setItem('ip_navigating_out', 'true');
|
|
9517
9519
|
window.location.href = this.libConfig.dashboardUrl;
|
|
9518
9520
|
}, 2000);
|
|
9519
9521
|
},
|
|
@@ -35733,6 +35735,9 @@ class InitialProcessComponent {
|
|
|
35733
35735
|
sessionStorage.removeItem('ip_active_user');
|
|
35734
35736
|
}
|
|
35735
35737
|
onBeforeUnload(event) {
|
|
35738
|
+
// Skip dialog when navigating intentionally to the dashboard
|
|
35739
|
+
if (sessionStorage.getItem('ip_navigating_out') === 'true')
|
|
35740
|
+
return;
|
|
35736
35741
|
// Warn on any in-progress view; skip view 1 (start) and view 5 (completed)
|
|
35737
35742
|
if (this.view !== 1 && this.view !== 5) {
|
|
35738
35743
|
event.preventDefault();
|