From b3403a65cf3e84b5c529e6759c60831d74315eba Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 11 Jan 2023 16:09:26 +0200 Subject: [PATCH] Some fixes regarding Preview mode. Change round of numbers to over 1M and to one decimal. --- src/app/app.component.html | 2 +- src/app/app.component.ts | 5 ++++- src/app/monitor/monitor.component.html | 4 ++-- src/app/openaireLibrary | 2 +- src/app/topic/indicators.component.html | 2 +- src/app/topic/topic.component.html | 5 ++--- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index b397308..fc94cb0 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -34,7 +34,7 @@
- If you have been already a member of this dashboard - Sign in in order to enter the dashboard + If you are a member of this dashboard, please sign in.
If you want to be a member of this dashboard - Contact us. diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 6c15cba..e0fd17d 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -128,6 +128,9 @@ export class AppComponent implements OnInit, OnDestroy { })); this.route.queryParams.subscribe(params => { this.view = params['view']; + if(this.stakeholder) { + this.setSideBar(); + } }); this.layoutService.setSmallScreen((this.innerWidth && this.innerWidth <= 640)); this.layoutService.setOpen(!(this.innerWidth && this.innerWidth <= 640)); @@ -277,7 +280,7 @@ export class AppComponent implements OnInit, OnDestroy { let topicItem: MenuItem = new MenuItem(topic.alias, topic.name, "", '/' + this.stakeholder.alias + '/' + topic.alias, null, [], [], {}, {svg: topic.icon}, null, null, ( '/' + this.stakeholder.alias + '/' + topic.alias)); - topicItem.items = topic.categories.map(category => { + topicItem.items = topic.categories.filter(category => this.hasPermission(category.visibility)).map(category => { return new MenuItem(category.alias, category.name, "", ('/' + this.stakeholder.alias + '/' + topic.alias + '/' + category.alias), null, [], [], {}, {svg: topic.icon}, null, null, ('/' + this.stakeholder.alias + '/' + topic.alias + '/' + category.alias)); diff --git a/src/app/monitor/monitor.component.html b/src/app/monitor/monitor.component.html index 5722641..d9ede50 100644 --- a/src/app/monitor/monitor.component.html +++ b/src/app/monitor/monitor.component.html @@ -86,7 +86,7 @@ || !activeTopic || !activeCategory || !activeSubCategory)" [ngIfElse]="content">

- No indicators available yet. Stay tuned! + Nothing to see here!

@@ -103,7 +103,7 @@
{{indicator.name}}
- {{numberResults.get(i + '-' + j) | numberRound}} + {{numberResults.get(i + '-' + j) | numberRound: 2:1}} --
{{indicator.name}}
- {{numberResults.get(i + '-' + j) | numberRound}} + {{numberResults.get(i + '-' + j) | numberRound: 2:1}} --
diff --git a/src/app/topic/topic.component.html b/src/app/topic/topic.component.html index 6d6e5d7..1da3d53 100644 --- a/src/app/topic/topic.component.html +++ b/src/app/topic/topic.component.html @@ -204,12 +204,11 @@