log out issues
This commit is contained in:
@@ -13,19 +13,21 @@ export class LogoutPage implements OnInit {
|
||||
private navctr: NavController,
|
||||
private router: Router
|
||||
) {
|
||||
|
||||
this.returnToLogin(this.router);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.returnToLogin(this.router);
|
||||
|
||||
}
|
||||
returnToLogin(router: Router){
|
||||
setTimeout(function(){
|
||||
// this.onBack();
|
||||
|
||||
timeoutId:any;
|
||||
returnToLogin(router: Router){
|
||||
this.timeoutId = setTimeout(function(){
|
||||
router.navigate(['login']);
|
||||
}, 5000);
|
||||
}
|
||||
onBack() {
|
||||
clearTimeout(this.timeoutId);
|
||||
this.router.navigate(['login']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user