ready: true,
measures,
leak,
- coverageMetricPrefix: this.getCoverageMetricPrefix(measures),
+ coverageMetricPrefix: this.getCoverageMetricPrefix(measures)
});
});
},
</div>;
},
+ renderEmpty() {
+ return <div className="overview-detailed-page">
+ <div className="page">
+ <p>{window.t('overview.no_coverage')}</p>
+ </div>
+ </div>;
+ },
+
renderLegend () {
return <DomainLeakTitle inline={true} label={this.state.leakPeriodLabel} date={this.state.leakPeriodDate}/>
},
let coverageMetric = this.state.coverageMetricPrefix + 'coverage',
uncoveredLinesMetric = this.state.coverageMetricPrefix + 'uncovered_lines';
+ if (this.state.measures[coverageMetric] == null) {
+ return this.renderEmpty();
+ }
+
return <div className="overview-detailed-page">
<div className="overview-cards-list">
<div className="overview-card overview-card-fixed-width">
</div>;
},
+ renderEmpty() {
+ return <div className="overview-detailed-page">
+ <div className="page">
+ <p>{window.t('overview.no_duplications')}</p>
+ </div>
+ </div>;
+ },
+
renderLegend () {
return <DomainLeakTitle inline={true} label={this.state.leakPeriodLabel} date={this.state.leakPeriodDate}/>
},
if (!this.state.ready) {
return this.renderLoading();
}
+
+ if (this.state.measures['duplicated_lines_density'] == null) {
+ return this.renderEmpty();
+ }
+
let treemapScale = d3.scale.linear()
.domain([0, 25, 50, 75, 100])
.range(CHART_COLORS_RANGE_PERCENT);
+
return <div className="overview-detailed-page">
<div className="overview-cards-list">
<div className="overview-card overview-card-fixed-width">
overview.complexity_tooltip.function={0} functions have complexity around {1}
overview.complexity_tooltip.file={0} files have complexity around {1}
+overview.no_coverage=This component does not have coverage details.
+overview.no_duplications=This component does not have details details.
+
#------------------------------------------------------------------------------
#