mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
dont remove session exparation model on route chage
This commit is contained in:
@@ -106,10 +106,10 @@ export class HomePage implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
this.router.events.subscribe((val) => {
|
this.router.events.subscribe((val) => {
|
||||||
document.querySelectorAll('ion-modal').forEach((e: any) => e.remove())
|
// document.querySelectorAll('ion-modal').forEach((e: any) => e.remove())
|
||||||
document.querySelectorAll('popover-viewport').forEach((e: any) => e.remove())
|
// document.querySelectorAll('popover-viewport').forEach((e: any) => e.remove())
|
||||||
document.querySelectorAll('.loading-blocker').forEach((e: any) => e.remove())
|
// document.querySelectorAll('.loading-blocker').forEach((e: any) => e.remove())
|
||||||
document.querySelectorAll('ion-popover').forEach((e: any) => e.remove())
|
// document.querySelectorAll('ion-popover').forEach((e: any) => e.remove())
|
||||||
});
|
});
|
||||||
|
|
||||||
window['platform'] = platform
|
window['platform'] = platform
|
||||||
@@ -118,9 +118,9 @@ export class HomePage implements OnInit {
|
|||||||
|
|
||||||
if (window.location.pathname != '/inactivity' && window.location.pathname != '/') {
|
if (window.location.pathname != '/inactivity' && window.location.pathname != '/') {
|
||||||
|
|
||||||
document.querySelectorAll('ion-modal').forEach((e: any) => e.remove());
|
document.querySelectorAll('ion-modal:not(.keep-this)').forEach((e: any) => e.remove());
|
||||||
document.querySelectorAll('.popover-viewport').forEach((e: any) => e.remove());
|
document.querySelectorAll('.popover-viewport:not(.keep-this) ').forEach((e: any) => e.remove());
|
||||||
document.querySelectorAll('.loading-blocker').forEach((e: any) => e.remove());
|
document.querySelectorAll('.loading-blocker:not(.keep-this)').forEach((e: any) => e.remove());
|
||||||
|
|
||||||
const pathname = window.location.pathname
|
const pathname = window.location.pathname
|
||||||
SessionStore.setUrlBeforeInactivity(pathname)
|
SessionStore.setUrlBeforeInactivity(pathname)
|
||||||
|
|||||||
Reference in New Issue
Block a user