diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 9cf803b..84502ff 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -11,11 +11,6 @@ const routes: Routes = [ loadChildren: () => import('./reload/libReload.module').then(m => m.LibReloadModule), data: {hasSidebar: false} }, - { - path: 'user-info', - loadChildren: () => import('./login/libUser.module').then(m => m.LibUserModule), - data: {hasSidebar: false} - }, { path: 'error', component: OpenaireErrorPageComponent, @@ -27,6 +22,11 @@ const routes: Routes = [ canActivateChild: [LoginGuard], data: {hasAdminMenu: true} }, + { + path: 'admin/user-info', + loadChildren: () => import('./login/libUser.module').then(m => m.LibUserModule), + data: {hasSidebar: false} + }, { path: 'admin/admin-tools', loadChildren: () => import('./admin-tools/portal-admin-tools-routing.module').then(m => m.PortalAdminToolsRoutingModule), diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 3750c8c..7b36107 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -262,10 +262,9 @@ export class AppComponent implements OnInit, OnDestroy { this.userMenuItems.push(new MenuItem("monitorOptions", "Monitor portal options", "", "/admin/monitor/admin-tools/pages", false, [], [], {})); } - this.userMenuItems.push(new MenuItem("", "User information", "", "/user-info", false, [], [], {})); } if (this.stakeholder) { - + this.userMenuItems.push(new MenuItem("", "User information", "", "/" + this.stakeholder.alias + "/user-info", false, [], [], {})); this.menuItems.push({ rootItem: new MenuItem("dashboard", "Dashboard", "", "/" + this.stakeholder.alias, false, [], null, {} @@ -342,6 +341,7 @@ export class AppComponent implements OnInit, OnDestroy { } } else { if (this.isFrontPage || !this.hasAdminMenu) { + this.userMenuItems.push(new MenuItem("", "User information", "https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu/user-info', '', false, [], [], {}, null, null, null, null, "_self")); this.menuHeader = { route: null, url: "https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu', @@ -355,15 +355,16 @@ export class AppComponent implements OnInit, OnDestroy { }; this.menuItems.push({ rootItem: new MenuItem("about", "About", - "https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu/about/learn-how', "", false, [], null, {}), + "https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu/about/learn-how', "", false, [], null, {}, null, null, null, null, "_self"), items: [] }); this.menuItems.push({ rootItem: new MenuItem("browse", "Browse", - "https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu/browse', "", false, [], null, {}), + "https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu/browse', "", false, [], null, {}, null, null, null, null, "_self"), items: [] }); } else { + this.userMenuItems.push(new MenuItem("", "User information", "", "/admin/user-info", false, [], [], {})); this.menuHeader = { route: "/", url: null, diff --git a/src/app/general/general.component.html b/src/app/general/general.component.html index 102b7cd..fbfd343 100644 --- a/src/app/general/general.component.html +++ b/src/app/general/general.component.html @@ -20,7 +20,7 @@
-
+
diff --git a/src/app/monitor/monitor-routing.module.ts b/src/app/monitor/monitor-routing.module.ts index 82ce505..c490e70 100644 --- a/src/app/monitor/monitor-routing.module.ts +++ b/src/app/monitor/monitor-routing.module.ts @@ -46,6 +46,11 @@ import {OpenaireErrorPageComponent} from "../error/errorPage.component"; component: OpenaireErrorPageComponent, data: {hasSidebar: false} }, + { + path: ':stakeholder/user-info', + loadChildren: () => import('../login/libUser.module').then(m => m.LibUserModule), + data: {hasSidebar: false} + }, { path: ':stakeholder/:topic', component: MonitorComponent, diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 4625ebf..13ef173 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 4625ebf9674e4ffd185bcbee050737b99f690cc4 +Subproject commit 13ef1734063f5331eaad586cf874a5b0f3f30521 diff --git a/src/assets/common-assets b/src/assets/common-assets index 1c7b422..65cbf34 160000 --- a/src/assets/common-assets +++ b/src/assets/common-assets @@ -1 +1 @@ -Subproject commit 1c7b42284c58024e7d51cb0ae7c5c27f997c646d +Subproject commit 65cbf342bc890aff15a8831711f69d9b35e6f85d diff --git a/src/assets/dashboard-theme b/src/assets/dashboard-theme index d2afff9..8818983 160000 --- a/src/assets/dashboard-theme +++ b/src/assets/dashboard-theme @@ -1 +1 @@ -Subproject commit d2afff99f1b7fd5e2f143191dc836bba56bdb8ca +Subproject commit 8818983564cb9e9232979af27fa568c18fa4eba8 diff --git a/src/assets/openaire-theme b/src/assets/openaire-theme index 5edc3ac..8c45858 160000 --- a/src/assets/openaire-theme +++ b/src/assets/openaire-theme @@ -1 +1 @@ -Subproject commit 5edc3ac713d4e2b78ad81d060c0c3f8a1ce3fafe +Subproject commit 8c4585873a56165631bee6b9d33d11fe83fc897c