mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
[ACS-5932] - Sidenav not able to expand when search page is closed (#3412)
This commit is contained in:
@@ -44,7 +44,8 @@ describe('SidenavComponent', () => {
|
||||
provide: AppService,
|
||||
useValue: {
|
||||
appNavNarMode$: new BehaviorSubject('expanded'),
|
||||
toggleAppNavBar$: new Subject()
|
||||
toggleAppNavBar$: new Subject(),
|
||||
setAppNavbarMode: jasmine.createSpy('setAppNavbarMode')
|
||||
}
|
||||
},
|
||||
SidenavLayoutComponent
|
||||
|
@@ -64,7 +64,7 @@ export class SidenavComponent implements OnInit, OnDestroy {
|
||||
this.groups = this.extensions.getApplicationNavigation(this.extensions.navbar);
|
||||
});
|
||||
|
||||
this.appService.appNavNarMode$.next(this.data.mode);
|
||||
this.appService.setAppNavbarMode(this.data.mode);
|
||||
this.appService.toggleAppNavBar$.pipe(takeUntil(this.onDestroy$)).subscribe(() => this.toggleNavBar());
|
||||
this.data.layout.expanded.pipe(takeUntil(this.onDestroy$)).subscribe(() => this.setNavBarMode());
|
||||
}
|
||||
@@ -82,7 +82,7 @@ export class SidenavComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
private setNavBarMode() {
|
||||
this.appService.appNavNarMode$.next(this.data.layout.isMenuMinimized || this.data.layout.isHeaderInside ? 'collapsed' : 'expanded');
|
||||
this.appService.setAppNavbarMode(this.data.layout.isMenuMinimized || this.data.layout.isHeaderInside ? 'collapsed' : 'expanded');
|
||||
}
|
||||
|
||||
private toggleNavBar() {
|
||||
|
Reference in New Issue
Block a user