This commit is contained in:
Peter Maquiran
2021-11-16 14:51:21 +01:00
parent 85abff3ac7
commit 850f9e0f29
7 changed files with 115 additions and 10 deletions
+1 -1
View File
@@ -400,7 +400,7 @@ const routes: Routes = [
loadChildren: ()=> import('../pages/inactivity/inactivity.module').then(m => m.InactivityPageModule)
},
],
// canActivate: [InactivityGuard]
canActivate: [InactivityGuard]
},
];
-2
View File
@@ -40,7 +40,6 @@ export class LoginPage implements OnInit {
private changeProfileService: ChangeProfileService,
public ThemeService: ThemeService,
private storageservice: StorageService,
) {}
ngOnInit() {
@@ -132,7 +131,6 @@ export class LoginPage implements OnInit {
}
}
goback() {
const pathName = SessionStore.user.UrlBeforeInactivity
if(pathName) {
+21 -7
View File
@@ -196,16 +196,30 @@ export class ToastService {
loading() : HTMLDivElement {
let loader: HTMLDivElement = document.createElement('div')
let theme;
if(document.querySelector('body').className.includes('gov')) {
theme = 'gov'
} else if(document.querySelector('body').className.includes('default')) {
theme = 'blue'
} else if(document.querySelector('body').className.includes('tribunal')) {
theme = 'tribunal'
} else {
theme = 'gov'
}
loader.innerHTML = `
<div class="loading-blocker">
<div class="loading-blocker-container">
<img src="/assets/images/Blocks-loader.gif" />
<div class="loading-blocker">
<div class="loading-blocker-container">
<img src="/assets/gif/theme/${theme}/Blocks-loader.svg" />
</div>
</div>
</div>
`
`;
console.log(document.querySelector('body').classList)
document.body.append(loader)
loader.addEventListener('click', ()=>{