From c61122e1139ef99be0031ce20642bfeaec14e985 Mon Sep 17 00:00:00 2001 From: Konstantinos Triantafyllou Date: Mon, 14 Dec 2020 15:21:17 +0000 Subject: [PATCH] [Monitor Dahsboard | Trunk]: Add Manage on develop page git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@60127 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/app.component.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 85057a6..b72264e 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -259,10 +259,18 @@ export class AppComponent implements OnInit, OnDestroy { rootItem: new MenuItem("dashboard", "Dashboard", "", "/" + this.stakeholder.alias, false, [], null, {}), items: [] }); - this.menuItems.push({ - rootItem: new MenuItem("develop", "Develop", - "", "/" + this.stakeholder.alias + "/develop", false, [], null, {}), items: [] - }); + if(this.stakeholder.type === "funder") { + this.menuItems.push({ + rootItem: new MenuItem("develop", "Develop", + "", "/" + this.stakeholder.alias + "/develop", false, [], null, {}), items: [] + }); + } + if (this.isCurator()) { + this.menuItems.push({ + rootItem: new MenuItem("manage", "Manage", + "", "/admin", false, [], null, {}), items: [] + }); + } } else if (this.isFrontPage) { this.menuHeader = { @@ -286,7 +294,6 @@ export class AppComponent implements OnInit, OnDestroy { rootItem: new MenuItem("manage", "Manage", "", "/admin", false, [], null, {}), items: [] }); - } if (this.isPublicOrIsMember(this.stakeholder.visibility)) {