[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:
parent
36f769c819
commit
b5b5e263b0
|
@ -150,8 +150,10 @@ export class CommunitiesComponent {
|
||||||
isSubscriber = res;
|
isSubscriber = res;
|
||||||
if(isSubscriber) {
|
if(isSubscriber) {
|
||||||
community.isSubscribed = true;
|
community.isSubscribed = true;
|
||||||
if(!isManager) {
|
if(isManager) {
|
||||||
this.subscriberOfCommunities.push(community);
|
this.subscriberOfCommunities.push(community);
|
||||||
|
} else {
|
||||||
|
this.subscriberOfCommunities.unshift(community);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue