1. subscribe.component: disable subscribe/unsubscribe button when already pushed | add notification when subscribe/unsubscribe fails.

2. subscribe.service: return null in 'isSubscribedToCommunity' function if request fails.


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@53349 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2018-10-01 12:46:21 +00:00
parent 57cb3051c9
commit c00ee7b7dd
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ export class SubscribeService {
.map(res => ((<any>res =="")?{}:<any> res.json()))
.map(res => {
if(res.status && res.status != 200) {
return null;
}
if(res.subscribers && res.subscribers != null){
for(var i =0; i< res.subscribers.length; i++ ){