mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 03:53:02 +00:00
90978: Move admin menu to MenuResolver, clean up & add tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { MenuID } from '../menu/initial-menus-state';
|
||||
import { Observable, of as observableOf } from 'rxjs';
|
||||
import { MenuSection } from '../menu/menu.reducer';
|
||||
import { MenuSection, MenuState } from '../menu/menu.reducer';
|
||||
|
||||
export class MenuServiceStub {
|
||||
visibleSection1 = {
|
||||
@@ -77,6 +77,10 @@ export class MenuServiceStub {
|
||||
return observableOf(true);
|
||||
}
|
||||
|
||||
getMenu(id: MenuID): Observable<MenuState> {
|
||||
return observableOf({} as MenuState);
|
||||
}
|
||||
|
||||
getMenuTopSections(id: MenuID): Observable<MenuSection[]> {
|
||||
return observableOf([this.visibleSection1, this.visibleSection2]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user