From 9a16548826eba30841b40c08feebabc6b9f187f1 Mon Sep 17 00:00:00 2001 From: Alfonso Salces Date: Tue, 7 Feb 2023 12:58:00 +0100 Subject: [PATCH] MOBILE-4077 ReportBuilder: Fix routing in mainmenu --- .../features/reportbuilder/reportbuilder.module.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/core/features/reportbuilder/reportbuilder.module.ts b/src/core/features/reportbuilder/reportbuilder.module.ts index 833c8df1f..06dfaedf2 100644 --- a/src/core/features/reportbuilder/reportbuilder.module.ts +++ b/src/core/features/reportbuilder/reportbuilder.module.ts @@ -13,7 +13,9 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; +import { Routes } from '@angular/router'; +import { CoreMainMenuRoutingModule } from '@features/mainmenu/mainmenu-routing.module'; +import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module'; import { CoreUserDelegate } from '@features/user/services/user-delegate'; import { CoreReportBuilderHandler, CoreReportBuilderHandlerService } from './services/handlers/reportbuilder'; @@ -25,7 +27,11 @@ const routes: Routes = [ ]; @NgModule({ - imports: [RouterModule.forChild(routes)], + imports: [ + CoreMainMenuRoutingModule.forChild({ children: routes }), + CoreMainMenuTabRoutingModule.forChild(routes), + ], + exports: [CoreMainMenuRoutingModule], providers: [ { provide: APP_INITIALIZER,