Retab full-layout.component

This commit is contained in:
Tom Bloor 2017-08-15 13:51:02 +01:00
parent 356a25fc36
commit f92aaff2ff

View file

@ -8,10 +8,6 @@ import { Router } from '@angular/router';
providers: [ApiService] providers: [ApiService]
}) })
export class FullLayoutComponent implements OnInit { export class FullLayoutComponent implements OnInit {
customersThisMonth: any;
moneySpentThisMonth: any;
pointsTotal: any;
averageTransactionToday: any;
displayName: any; displayName: any;
constructor( constructor(
@ -38,14 +34,15 @@ 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!');
window.location.reload(); // TODO Reload? srsly?
} window.location.reload();
); }
);
} }
} }