90978: Move admin menu to MenuResolver, clean up & add tests

This commit is contained in:
Yura Bondarenko
2022-04-27 14:26:00 +02:00
parent cc745b4225
commit 8a4f811575
5 changed files with 841 additions and 659 deletions

View File

@@ -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]);
}