From 43acf3692341d426a29dc198c9a2051397b55aea Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 5 Aug 2022 11:47:07 +0300 Subject: [PATCH] Change Dasbhoard menu item to home. --- src/app/app.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a0f64d6..a6fdd85 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -181,7 +181,7 @@ export class AppComponent implements OnInit { this.sideBarItems = []; if (this.user) { if (this.isCurator()) { - this.userMenuItems.push(new MenuItem("", "Manage Gateways", + this.userMenuItems.push(new MenuItem("", "Manage communities", "", "/", false, [], [], {})); } if (Session.isPortalAdministrator(this.user)) { @@ -215,11 +215,11 @@ export class AppComponent implements OnInit { if (this.community.type === 'ri') { this.sideBarItems.push(new MenuItem("mining", "Mining", "", "/" + this.community.communityId + "/mining/manage-profiles", false, [], [], {}, {svg: mining.data}, null, null, "/" + this.community.communityId + "/mining")); } - this.specialSideBarMenuItem = new MenuItem("back", "Manage Gateways", "", "/", false, [], null, {}, {name: 'west'}); + this.specialSideBarMenuItem = new MenuItem("back", "Manage communities", "", "/", false, [], null, {}, {name: 'west'}); this.menuItems = []; this.menuItems.push({ - rootItem: new MenuItem("dashboard", "Dashboard", + rootItem: new MenuItem("home", "Home", "https://"+(properties.environment == "beta" ? "beta." : "")+this.community.communityId+".openaire.eu/", "", false, [], null, null , null, null, null, null, "_self"), items: [] }); @@ -257,7 +257,7 @@ export class AppComponent implements OnInit { ] }); this.menuItems.push({ - rootItem: new MenuItem("develop", "Develop", "https://"+(properties.environment == "beta" ? "beta." : "")+this.community.communityId+".openaire.eu/develop", "", false, [], [], null, null, null, null, null, "_self"), + rootItem: new MenuItem("develop", "Develop", "https://"+(properties.environment == "beta" ? "beta." : "")+this.community.communityId+".openaire.eu/develop", "", false, [], ['/develop'], null, null, null, null, null, "_self"), items: [] }); // if (this.isManager) { @@ -299,7 +299,7 @@ export class AppComponent implements OnInit { items: [] }); if(this.isCurator()) { - this.sideBarItems.push(new MenuItem("communities", "Manage Gateways", "", "/", false, [], [], {}, {name: 'settings'})); + this.sideBarItems.push(new MenuItem("communities", "Manage communities", "", "/", false, [], [], {}, {name: 'settings'})); } if (Session.isPortalAdministrator(this.user)) { this.sideBarItems.push(new MenuItem("super_admin", "Super Admin Options", "", "/admin-tools/portals", false, [], [], {}, {name: 'settings'}, null, null, '/admin-tools'));