Change Dasbhoard menu item to home.

This commit is contained in:
Konstantinos Triantafyllou 2022-08-05 11:47:07 +03:00
parent 51b5b80c82
commit 43acf36923
1 changed files with 5 additions and 5 deletions

View File

@ -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'));