From ea613919c3938dc4e5597d21b80971b9d13e57c1 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 29 Jul 2022 14:47:32 +0300 Subject: [PATCH] Fix a bug when you are saving a topic, etc., this triggers transition. Add dev condition for resources menu item --- src/app/app-routing.module.ts | 7 +- src/app/app.component.html | 2 +- src/app/app.component.ts | 36 +- src/app/methodology/methodology.component.ts | 465 ------------------- src/app/methodology/methodology.module.ts | 28 -- src/app/monitor/monitor-routing.module.ts | 4 +- src/app/openaireLibrary | 2 +- src/app/topic/topic.component.html | 2 +- src/app/topic/topic.component.ts | 152 +++--- src/assets/common-assets | 2 +- 10 files changed, 132 insertions(+), 568 deletions(-) delete mode 100644 src/app/methodology/methodology.component.ts delete mode 100644 src/app/methodology/methodology.module.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index cafbfe3..b119844 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -52,7 +52,12 @@ const routes: Routes = [ activeMenuItem: "manage" } }, - {path: 'theme', loadChildren: () => import('./openaireLibrary/utils/theme/theme.module').then(m => m.ThemeModule)}, + { + path: 'theme', + loadChildren: () => import('./openaireLibrary/utils/theme/theme.module').then(m => m.ThemeModule), + canActivateChild: [AdminLoginGuard], + data: {hasSidebar: false, hasHeader: false, monitorCurator: true, monitorManager: true} + }, { path: '', loadChildren: () => import('./monitor/monitor.module').then(m => m.MonitorModule), diff --git a/src/app/app.component.html b/src/app/app.component.html index 66cc091..ee59921 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -2,7 +2,7 @@
-