[ACS-5932] - Sidenav not able to expand when search page is closed (#3412)

This commit is contained in:
DominikIwanek
2023-09-05 16:45:49 +02:00
committed by GitHub
parent 4a8faeaa8e
commit 46ea85436b
8 changed files with 22 additions and 14 deletions

View File

@@ -174,6 +174,11 @@ export class AppService implements OnDestroy {
this.overlayContainer.getContainerElement().setAttribute('role', 'region');
}
setAppNavbarMode(mode: 'expanded' | 'collapsed'): void {
this.appNavNarMode$.next(mode);
this.preferencesService.set('expandedSidenav', mode === 'expanded');
}
private loadRepositoryStatus() {
this.contentApi.getRepositoryInformation().subscribe((response: DiscoveryEntry) => {
if (response?.entry?.repository) {