[ADF-1611] Demo shell responsiveness (#2426)

* Reapplying the unreappliable

* Fix buggy search button

* Fix settings

* Last bit of responsive stylings
This commit is contained in:
Popovics András
2017-10-04 17:54:18 +01:00
committed by Eugenio Romano
parent b2452f6097
commit cc1efc9cd6
24 changed files with 464 additions and 452 deletions

View File

@@ -16,7 +16,7 @@
*/
import { Component, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
import { ActivatedRoute, Router } from '@angular/router';
import { AlfrescoSettingsService, PageTitleService, StorageService } from 'ng2-alfresco-core';
@Component({
@@ -27,7 +27,6 @@ import { AlfrescoSettingsService, PageTitleService, StorageService } from 'ng2-a
})
export class AppComponent {
searchTerm: string = '';
showAppMenu = true;
constructor(private settingsService: AlfrescoSettingsService,
private storage: StorageService,
@@ -36,25 +35,6 @@ export class AppComponent {
router: Router) {
this.setProvider();
pageTitleService.setTitle();
router.events
.filter(event => event instanceof NavigationEnd)
.subscribe(() => {
let currentRoute = route.root;
while (currentRoute.firstChild) {
currentRoute = currentRoute.firstChild;
}
const snapshot: any = currentRoute.snapshot || {};
const data: any = snapshot.data || {};
if (data && data['showAppMenu'] !== undefined) {
this.showAppMenu = data && data.showAppMenu;
} else {
this.showAppMenu = true;
}
});
}
private setProvider() {