From 2ce065b70e2ef503e0a6317eeb8210fcae1003c3 Mon Sep 17 00:00:00 2001 From: Argiro Kokogiannaki Date: Thu, 5 Nov 2020 16:50:06 +0000 Subject: [PATCH] [Monitor Dashboard | Trunk] -call setSidebar when stakeholder is already available from admin -hide section title when there are no indicators - git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@59789 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/app.component.html | 3 ++- src/app/app.component.ts | 4 ++-- .../manageStakeholders.component.css | 2 +- .../manageStakeholders.component.html | 2 +- src/app/monitor/monitor.component.html | 5 +++-- src/app/monitor/monitor.component.ts | 11 ++++++++++- 6 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 08ade81..fba1e15 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -17,7 +17,8 @@ 'monitor.openaire.eu'" queryParamsHandling="preserve" > diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 32797b7..4410dc3 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -124,7 +124,7 @@ export class AppComponent implements OnInit, OnDestroy { } else { this.activeTopic = this.stakeholder.topics.find(topic => this.isPublicOrIsMember(topic.visibility)); } - // this.setSideBar(); + this.setSideBar(); this.loading = false; } else { LinksResolver.resetProperties(); @@ -147,6 +147,7 @@ export class AppComponent implements OnInit, OnDestroy { } else { this.activeTopic = this.stakeholder.topics.find(topic => this.isPublicOrIsMember(topic.visibility)); } + this.setSideBar(); this.loading = false; } } else { @@ -226,7 +227,6 @@ export class AppComponent implements OnInit, OnDestroy { } if (this.stakeholder) { if (this.isFrontPage) { - this.setSideBar(); this.menuHeader = { route: "/" + this.stakeholder.alias, url: null, diff --git a/src/app/manageStakeholders/manageStakeholders.component.css b/src/app/manageStakeholders/manageStakeholders.component.css index d658426..3d36bda 100644 --- a/src/app/manageStakeholders/manageStakeholders.component.css +++ b/src/app/manageStakeholders/manageStakeholders.component.css @@ -1,5 +1,5 @@ .uk-card { - min-height: 270px; + min-height: 150px; } .uk-card-body { diff --git a/src/app/manageStakeholders/manageStakeholders.component.html b/src/app/manageStakeholders/manageStakeholders.component.html index 37f9ca3..809fb66 100644 --- a/src/app/manageStakeholders/manageStakeholders.component.html +++ b/src/app/manageStakeholders/manageStakeholders.component.html @@ -124,7 +124,7 @@
{{text}}
-
+
diff --git a/src/app/monitor/monitor.component.html b/src/app/monitor/monitor.component.html index f422551..de2485e 100644 --- a/src/app/monitor/monitor.component.html +++ b/src/app/monitor/monitor.component.html @@ -123,7 +123,7 @@
-

{{number.title}}

+

{{number.title}}

-

{{chart.title}}

+

{{chart.title}}