From 611e8801b352b77cddec28358f4820c8af1b11ea Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Wed, 28 Feb 2018 15:49:43 +0000 Subject: [PATCH] Add managers field in CommunityInfo structure git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@50978 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/community/community.component.html | 26 ++++++++++++++++++++-- src/app/community/community.service.ts | 6 +++++ src/app/utils/communityInfo.ts | 1 + 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index d990507..dc4df8f 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -29,7 +29,6 @@
-
-
+
diff --git a/src/app/community/community.service.ts b/src/app/community/community.service.ts index 8136c62..e23ef0f 100644 --- a/src/app/community/community.service.ts +++ b/src/app/community/community.service.ts @@ -18,6 +18,12 @@ export class CommunityService { .map(res => res.json()).map(res => res.total).do(res => {console.log(res)}); } + // getTotal() + // + // countResults(url:string): string { + // + // } + getResults(url: string) { return this.http.get(url).map(res => res.json()).map(res => this.parseResults(res['results'])); } diff --git a/src/app/utils/communityInfo.ts b/src/app/utils/communityInfo.ts index f97f44b..30609fd 100644 --- a/src/app/utils/communityInfo.ts +++ b/src/app/utils/communityInfo.ts @@ -5,4 +5,5 @@ export class CommunityInfo { queryId: string; logoUrl: string; description: string; + managers: string[]; }