mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Revert "TESTING: sectionID argument to debug getComponentForMenu"
This reverts commit bfbe598bdd
.
This commit is contained in:
@@ -26,6 +26,6 @@ export function rendersSectionForMenu(menuID: MenuID, expandable: boolean) {
|
|||||||
* @param {boolean} expandable True when the section should be expandable, false when if should not
|
* @param {boolean} expandable True when the section should be expandable, false when if should not
|
||||||
* @returns {GenericConstructor} The constructor of the matching Component
|
* @returns {GenericConstructor} The constructor of the matching Component
|
||||||
*/
|
*/
|
||||||
export function getComponentForMenu(menuID: MenuID, expandable: boolean, sectionID: string) {
|
export function getComponentForMenu(menuID: MenuID, expandable: boolean) {
|
||||||
return menuComponentMap.get(menuID).get(expandable);
|
return menuComponentMap.get(menuID).get(expandable);
|
||||||
}
|
}
|
||||||
|
@@ -164,7 +164,7 @@ export class MenuComponent implements OnInit, OnDestroy {
|
|||||||
private getSectionComponent(section: MenuSection): Observable<GenericConstructor<MenuSectionComponent>> {
|
private getSectionComponent(section: MenuSection): Observable<GenericConstructor<MenuSectionComponent>> {
|
||||||
return this.menuService.hasSubSections(this.menuID, section.id).pipe(
|
return this.menuService.hasSubSections(this.menuID, section.id).pipe(
|
||||||
map((expandable: boolean) => {
|
map((expandable: boolean) => {
|
||||||
return getComponentForMenu(this.menuID, expandable, section.id);
|
return getComponentForMenu(this.menuID, expandable);
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user