replace MDL sidebar with material2 menus (#2112)

* replace MDL sidebar with material2 menus

- separate language picker
- separate "more" menu

* toolbar theme picker

* fix toolbar button colors for different themes

* revert the commented out code
This commit is contained in:
Denys Vuika
2017-07-21 14:39:33 +01:00
committed by Eugenio Romano
parent 0767bb6b20
commit 619112c0ba
5 changed files with 70 additions and 57 deletions

View File

@@ -72,7 +72,6 @@ export class AppComponent {
navigateToLogin() {
this.router.navigate(['/login']);
this.hideDrawer();
}
onToggleSearch(event) {
@@ -87,12 +86,6 @@ export class AppComponent {
changeLanguage(lang: string) {
this.translateService.use(lang);
this.hideDrawer();
}
hideDrawer() {
// todo: workaround for drawer closing
document.querySelector('.mdl-layout').MaterialLayout.toggleDrawer();
}
private setProvider() {