From 286b82c01a7bbe921f62137321b860a08f94fa65 Mon Sep 17 00:00:00 2001 From: Argiro Kokogiannaki Date: Wed, 24 Jun 2020 13:36:00 +0000 Subject: [PATCH] [Monitor dashboard|Trunk] For the menu use the stakeholder name instead of index_name redirect to error pages changed: -private stakeholder -- > message private data -public stakeholder with no topic/category/subcategory to show (either because is private, inactive or simpe they don't exist) --> message no indicators yet -inactive stakeholder/topic/category/subcategory OR the alias from URL doesn't exist --> error page git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@58986 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/monitor/monitor.component.html | 41 ++++++++++++++++++-------- src/app/monitor/monitor.component.ts | 17 ++++++----- 2 files changed, 37 insertions(+), 21 deletions(-) diff --git a/src/app/monitor/monitor.component.html b/src/app/monitor/monitor.component.html index 3d68fca..93276ac 100644 --- a/src/app/monitor/monitor.component.html +++ b/src/app/monitor/monitor.component.html @@ -14,7 +14,7 @@ {{'OpenAIRE Monitor '+(stakeholder.type == 'ri'?'Research Initiative':stakeholder.type)+ ' - ' }} - {{stakeholder.index_name}} + {{stakeholder.name}} @@ -23,9 +23,10 @@ -
-
- --> +
+
+
+ Private data
+
+
+
-
-
- {{activeSubCategory && activeSubCategory.description && activeSubCategory.description.length > 0 ? activeSubCategory.description - : (activeCategory && activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description : - (activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))}} + class="uk-text-center"> +
+ {{activeSubCategory && activeSubCategory.description && activeSubCategory.description.length > 0 ? activeSubCategory.description + : (activeCategory && activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description : + (activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))}} +
+ +
+
+ +
+ No indicators available yet. Stay tuned!
-
-
+
No indicators available yet. Stay tuned!
@@ -200,7 +215,7 @@
--> -
diff --git a/src/app/monitor/monitor.component.ts b/src/app/monitor/monitor.component.ts index 0f733ce..0d26ce0 100644 --- a/src/app/monitor/monitor.component.ts +++ b/src/app/monitor/monitor.component.ts @@ -58,7 +58,7 @@ export class MonitorComponent implements OnInit, OnDestroy, IDeactivateComponent fundingL0; startYear; endYear; - + privateStakeholder = false; public keyword: FormControl; constructor( @@ -133,7 +133,8 @@ export class MonitorComponent implements OnInit, OnDestroy, IDeactivateComponent this.setView(params); this.layoutService.setOpen(true); } else { - this.navigateToError(); + this.privateStakeholder = true; + // this.navigateToError(); subscription.unsubscribe(); } } @@ -237,14 +238,14 @@ export class MonitorComponent implements OnInit, OnDestroy, IDeactivateComponent if (this.activeSubCategory) { this.setSideBar(); this.setIndicators(); - } else { - this.navigateToError(); + // } else { + // this.navigateToError(); } - } else { - this.navigateToError(); + // } else { + // this.navigateToError(); } - } else { - this.navigateToError(); + // } else { + // this.navigateToError(); } } }