mirror of
https://github.com/discourse/discourse.git
synced 2025-04-08 20:00:43 +08:00
FIX: Some admin reports (notably backups) were not showing up
This commit is contained in:
parent
e870c09438
commit
1f74ea0f08
@ -300,7 +300,6 @@ export default Component.extend({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (report.error === "not_found") {
|
if (report.error === "not_found") {
|
||||||
this.set("showFilteringUI", false);
|
this.set("showFilteringUI", false);
|
||||||
}
|
}
|
||||||
@ -385,11 +384,15 @@ export default Component.extend({
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
const chartOptions = JSON.parse(JSON.stringify(CHART_OPTIONS));
|
const chartOptions = JSON.parse(JSON.stringify(CHART_OPTIONS));
|
||||||
|
|
||||||
|
let chartGrouping = this.get("reportOptions.chartGrouping");
|
||||||
|
if (!chartGrouping && report.chartData) {
|
||||||
|
chartGrouping = Report.groupingForDatapoints(report.chartData.length);
|
||||||
|
}
|
||||||
|
|
||||||
return EmberObject.create(
|
return EmberObject.create(
|
||||||
Object.assign(chartOptions, this.get("reportOptions.chart") || {}, {
|
Object.assign(chartOptions, this.get("reportOptions.chart") || {}, {
|
||||||
chartGrouping:
|
chartGrouping,
|
||||||
this.get("reportOptions.chartGrouping") ||
|
|
||||||
Report.groupingForDatapoints(report.chartData.length),
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user