fix header options for mobile (#1186)

* #1178 show header bar on mobile and tablet

* #1178 add all options to burger icon on the right
This commit is contained in:
Mario Romano
2016-12-01 01:45:36 -08:00
committed by Eugenio Romano
parent 7eab89c5ef
commit d768f84838
4 changed files with 82 additions and 71 deletions

View File

@@ -74,10 +74,12 @@ export class AppComponent {
.subscribe(
() => {
this.router.navigate(['/login']);
this.hideDrawer();
},
($event: any) => {
if ($event && $event.response && $event.response.status === 401) {
this.router.navigate(['/login']);
this.hideDrawer();
} else {
console.error('An unknown error occurred while logging out', $event);
}
@@ -97,6 +99,7 @@ export class AppComponent {
changeLanguage(lang: string) {
this.translate.use(lang);
this.hideDrawer();
}
hideDrawer() {