angular2-hotkeys beyond this breaks with Angular 8.x
logout now works. Only the clientID does not work as of now
This commit is contained in:
parent
ae8c46084c
commit
cd764be49c
overlord
@ -25,7 +25,7 @@
|
|||||||
"@angular/router": "^8.0.0",
|
"@angular/router": "^8.0.0",
|
||||||
"@ngx-loading-bar/http-client": "^3.0.0",
|
"@ngx-loading-bar/http-client": "^3.0.0",
|
||||||
"@ngx-loading-bar/router": "^3.0.0",
|
"@ngx-loading-bar/router": "^3.0.0",
|
||||||
"angular2-hotkeys": "^2.1.4",
|
"angular2-hotkeys": "2.1.4",
|
||||||
"core-js": "^2.5.7",
|
"core-js": "^2.5.7",
|
||||||
"hammerjs": "^2.0.8",
|
"hammerjs": "^2.0.8",
|
||||||
"mathjs": "^5.0.4",
|
"mathjs": "^5.0.4",
|
||||||
|
@ -13,13 +13,7 @@ export class LogoutComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.auth.logout().subscribe(
|
this.auth.logout();
|
||||||
(result) => {
|
|
||||||
this.toaster.show('Success', 'Logged Out');
|
|
||||||
this.router.navigateByUrl('/');
|
|
||||||
},
|
|
||||||
(error) => this.toaster.show('Danger', error.error)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user