[Trunk|Connect]: communities.component: In 'subscriberOfCommunities' list add all subscribers (push if is manager too, unshift if only subscriber).

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@55380 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-04-16 12:31:25 +00:00
parent 36f769c819
commit b5b5e263b0
1 changed files with 3 additions and 1 deletions

View File

@ -150,8 +150,10 @@ export class CommunitiesComponent {
isSubscriber = res;
if(isSubscriber) {
community.isSubscribed = true;
if(!isManager) {
if(isManager) {
this.subscriberOfCommunities.push(community);
} else {
this.subscriberOfCommunities.unshift(community);
}
}