Revision 56800
Added by Konstantinos Triantafyllou almost 5 years ago
modules/uoa-connect-portal/trunk/src/app/app.component.ts | ||
---|---|---|
231 | 231 |
if(Session.isLoggedIn()){ |
232 | 232 |
this._subscribeService.getCommunitiesSubscribedTo(this.properties, Session.getUserEmail()).subscribe ( |
233 | 233 |
pids => { |
234 |
if(pids.length > 0 && !this.community) {
|
|
234 |
if(pids.length > 0 ) { |
|
235 | 235 |
this.userMenuItems.push( new MenuItem("","Subscribed to communities","","/search/find/communities",false,[],[],{status:"%22subscribed%22"})) |
236 |
} else { |
|
237 |
this.userMenuItems = this.userMenuItems.filter(item => item.route !== '/search/find/communities'); |
|
238 | 236 |
} |
239 | 237 |
}, |
240 | 238 |
error => { |
Also available in: Unified diff
[Trunk|Connect]: Fix double subscribed to communities option on user menu. Need to be checked on beta.