fix pin page

This commit is contained in:
Peter Maquiran
2022-12-19 20:46:45 +01:00
parent 71493c4ae8
commit be617c0fe3
3 changed files with 8 additions and 4 deletions
-3
View File
@@ -131,8 +131,6 @@ export class ChatPage implements OnInit {
ngOnInit() {
// this.chatService.refreshtoken();
this.segment = "Contactos";
this.authService.userData$.subscribe((res: any) => {
@@ -281,7 +279,6 @@ export class ChatPage implements OnInit {
}
openGroupMessagesPage(rid) {
// this.chatService.refreshtoken();
this.roomId = rid;
if (window.innerWidth < 701) {
@@ -537,7 +537,9 @@ export class GabineteDigitalPage implements OnInit {
try {
expedientes = await this.processesbackend.GetTaskListExpediente(false).toPromise();
this.loadCount = true;
this.showLoader = false;
} catch(error) {
this.showLoader = false
this.loadCount = true;
}
+6 -1
View File
@@ -162,7 +162,12 @@ export class LoginPage implements OnInit {
this.getToken();
if(!this.platform.is('desktop') && !this.platform.is('mobileweb')) {
this.router.navigateByUrl('/pin', { replaceUrl: true });
if(this.sessionStore.hasPin) {
this.router.navigateByUrl('/home/events');
} else {
this.router.navigateByUrl('/pin', { replaceUrl: true });
}
} else {
this.router.navigateByUrl('/home/events');
}