Revision 58592
Added by Argiro Kokogiannaki almost 4 years ago
statistics.component.ts | ||
---|---|---|
129 | 129 |
this.status = this.errorCodes.LOADING; |
130 | 130 |
this._statisticsService.getCommunityStatistics(this.properties, this.communityId).subscribe( |
131 | 131 |
res => { |
132 |
this.statisticsSum = res; |
|
133 |
if (res["other"]) { //hack because in stats API the entity name is "other" while in admin API is "orp". This component uses also "orp" name |
|
134 |
this.statisticsSum["orp"] = res["other"]; |
|
132 |
if(res) { |
|
133 |
this.statisticsSum = res; |
|
134 |
if (res["other"]) { //hack because in stats API the entity name is "other" while in admin API is "orp". This component uses also "orp" name |
|
135 |
this.statisticsSum["orp"] = res["other"]; |
|
136 |
} |
|
137 |
this.getDisplayOptions(); |
|
138 |
}else{ |
|
139 |
console.error("Error getting community statistics for community with id: " + this.communityId); |
|
140 |
this.status = this.errorCodes.ERROR; |
|
135 | 141 |
} |
136 |
this.getDisplayOptions(); |
|
137 | 142 |
}, |
138 | 143 |
error => { |
139 | 144 |
//console.log(error); |
Also available in: Unified diff
[Connect|Trunk]
Impact factors: Remove fontawesome css, remove css from connect-custom (moved in library.css)
Statistics: add check for statistics service response