From 5d38eb892b2e4f17f5291445f276421c5f5d38a9 Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Fri, 16 Mar 2018 10:46:34 +0000 Subject: [PATCH] Add check for communityId = '' in community.component.ts and hide subscribe in community.component.html git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@51296 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/community/community.component.html | 10 ++++++---- src/app/community/community.component.ts | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index c8e6859..4aea8f7 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -3,8 +3,10 @@
-
No community chosen
- +
+ No community chosen +
+
@@ -33,7 +35,7 @@

-
+
@@ -84,7 +86,7 @@
-
+

Most recent publications diff --git a/src/app/community/community.component.ts b/src/app/community/community.component.ts index f8aec92..fb4b306 100644 --- a/src/app/community/community.component.ts +++ b/src/app/community/community.component.ts @@ -75,7 +75,7 @@ export class CommunityComponent { this.communityId = communityId['communityId']; }); - if (this.communityId != null) { + if (this.communityId != null && this.communityId != '') { this._communityService.getCommunity(this.properties.communityAPI+this.communityId).subscribe ( community => { this.community = community;