Revision 57548
Added by Konstantinos Triantafyllou over 4 years ago
my-communities.component.ts | ||
---|---|---|
76 | 76 |
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) { |
77 | 77 |
this.piwiksub = this._piwikService.trackView(this.properties, "OpenAIRE Connect", this.properties.piwikSiteId).subscribe(); |
78 | 78 |
} |
79 |
if (typeof document !== 'undefined') {
|
|
80 |
this.userManagementService.getUserInfo(this.properties.userInfoUrl).subscribe(user => {
|
|
81 |
this.user = user;
|
|
79 |
this.userManagementService.getUserInfo(this.properties.userInfoUrl).subscribe(user => {
|
|
80 |
this.user = user;
|
|
81 |
if(this.user) {
|
|
82 | 82 |
this.getCommunities(); |
83 |
//this.getDivContents();
|
|
84 |
//this.getPageContents();
|
|
85 |
});
|
|
86 |
} |
|
83 |
}
|
|
84 |
//this.getDivContents();
|
|
85 |
//this.getPageContents();
|
|
86 |
});
|
|
87 | 87 |
}); |
88 | 88 |
} |
89 | 89 |
|
... | ... | |
110 | 110 |
|
111 | 111 |
this._communitiesService.getCommunitiesState().subscribe( |
112 | 112 |
communitiesResults => { |
113 |
if(!communitiesResults){
|
|
113 |
if (!communitiesResults) {
|
|
114 | 114 |
return; |
115 | 115 |
} |
116 |
if(communitiesResults.length == 0) { |
|
116 |
if (communitiesResults.length == 0) {
|
|
117 | 117 |
this.status = this.errorCodes.DONE; |
118 | 118 |
return; |
119 |
}; |
|
119 |
} |
|
120 |
; |
|
120 | 121 |
this.sort(communitiesResults); |
121 | 122 |
|
122 | 123 |
var subscribedLoading = communitiesResults.length; |
Also available in: Unified diff
[Connect]: Revert check if is Client. Added on UserInfo method.