mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[MNT-25423] Remove doubled menu collapsing (#4898)
* [MNT-25423] Remove doubled menu collapsing * [MNT-25423] Remove obsolote import
This commit is contained in:
+1
-1
@@ -1,3 +1,3 @@
|
||||
@if (item) {
|
||||
<app-expand-menu [item]="item" (actionClicked)="onActionClick($event)" />
|
||||
<app-expand-menu [item]="item" />
|
||||
}
|
||||
|
||||
-8
@@ -27,7 +27,6 @@ import { SavedSearch } from '@alfresco/adf-content-services';
|
||||
import { TranslationService, UserPreferencesService, UserPreferenceValues } from '@alfresco/adf-core';
|
||||
import { NavBarLinkRef } from '@alfresco/adf-extensions';
|
||||
import { ExpandMenuComponent } from '../../../sidenav/components/expand-menu.component';
|
||||
import { AppService } from '@alfresco/aca-shared';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
import { delay } from 'rxjs/operators';
|
||||
import { SavedSearchesContextService } from '../../../../services/saved-searches-context.service';
|
||||
@@ -40,7 +39,6 @@ import { SavedSearchesContextService } from '../../../../services/saved-searches
|
||||
})
|
||||
export class SaveSearchSidenavComponent implements OnInit {
|
||||
savedSearchesService = inject(SavedSearchesContextService);
|
||||
appService = inject(AppService);
|
||||
translationService = inject(TranslationService);
|
||||
item: NavBarLinkRef;
|
||||
|
||||
@@ -66,12 +64,6 @@ export class SaveSearchSidenavComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
onActionClick(el: NavBarLinkRef): void {
|
||||
if (el.id !== this.manageSearchesId) {
|
||||
this.appService.appNavNarMode$.next('collapsed');
|
||||
}
|
||||
}
|
||||
|
||||
private createNavBarLinkRef(children: SavedSearch[]): NavBarLinkRef {
|
||||
const mappedChildren = children
|
||||
.map((child) => ({
|
||||
|
||||
Reference in New Issue
Block a user