From 512da32007a8f97b38b41246fb1f39688fae80a8 Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Tue, 6 Mar 2018 14:31:17 +0000 Subject: [PATCH] Remove available data providers from community-edit-form git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@51052 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../community-edit-form.component.html | 78 ------------------- .../community-edit-form.component.ts | 6 +- app/services/help-content.service.ts | 5 -- 3 files changed, 1 insertion(+), 88 deletions(-) diff --git a/app/pages/community/community-edit-form.component.html b/app/pages/community/community-edit-form.component.html index 8a85b34..3e85e1d 100644 --- a/app/pages/community/community-edit-form.component.html +++ b/app/pages/community/community-edit-form.component.html @@ -5,85 +5,7 @@

Description:

Logo:

-
-
- - -
-
- -

Available data providers:

- - - - - - - diff --git a/app/pages/community/community-edit-form.component.ts b/app/pages/community/community-edit-form.component.ts index 27d1727..97cfe72 100644 --- a/app/pages/community/community-edit-form.component.ts +++ b/app/pages/community/community-edit-form.component.ts @@ -20,11 +20,7 @@ export class CommunityEditFormComponent implements OnInit{ ngOnInit(){ - this._helpContentService.getDataProviders().subscribe( - res => { - this.res = res; - console.log(res); - }); + } public get form() { diff --git a/app/services/help-content.service.ts b/app/services/help-content.service.ts index f2415fe..0360bd1 100644 --- a/app/services/help-content.service.ts +++ b/app/services/help-content.service.ts @@ -385,11 +385,6 @@ export class HelpContentService { return Observable.throw(error.json().error || 'Server error'); } - getDataProviders() { - //return this.http.get('https://beta.services.openaire.eu/search/v2/api/datasources?format=json').map(res => res.json()).map(res => res.results).do(res => {console.log(res)}).catch(this.handleError); - return this.http.get('https://beta.services.openaire.eu/search/v2/api/datasources?format=json').map(res => res.json()).map(res => res.results).do(res => {console.log(res)}).catch(this.handleError); - } - getStatistics(community_pid: string) { return this.http.get(this._helpContentUrl + 'statistics/'+community_pid) .map(res => res.json())