Router redirect to login instead of window reload

This commit is contained in:
Tom Bloor 2017-08-16 15:58:31 +01:00
parent 49e2532434
commit eee8f8e949

View file

@ -34,15 +34,14 @@ export class FullLayoutComponent implements OnInit {
} }
userLogout() { userLogout() {
console.log('logout clicked'); console.log('logout clicked');
this.api this.api
.logout() .logout()
.subscribe( .subscribe(
result => { result => {
console.log('Logged out!'); console.log('Logged out!');
// TODO Reload? srsly? this.router.navigate(['/login']);
window.location.reload(); }
}
); );
} }
} }