mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[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:
committed by
Eugenio Romano
parent
b2452f6097
commit
cc1efc9cd6
@@ -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() {
|
||||
|
Reference in New Issue
Block a user