Project

General

Profile

« Previous | Next » 

Revision 58583

[Admin | Trunk]: Add message when no statistics exist. Disable customization route.

View differences:

stats.component.ts
87 87
        this.statisticsDisplay = null;
88 88
        this.contentService.getCommunityStatistics(this.properties.statisticsAPIURL, this.communityId).subscribe(
89 89
            stats => {
90
              this.statisticsSum = stats;
91
              if(stats["other"]){ //hack because in stats API the entity name is "other" while in admin API is "orp". This component uses also "orp" name
92
                this.statisticsSum["orp"]=stats["other"];
90
              if(stats) {
91
                this.statisticsSum = stats;
92
                if(stats["other"]){ //hack because in stats API the entity name is "other" while in admin API is "orp". This component uses also "orp" name
93
                  this.statisticsSum["orp"]=stats["other"];
94
                }
93 95
              }
94 96
            },
95 97
            error => {

Also available in: Unified diff