mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
FIX: handles not found reports in bulk loading (#6582)
This commit is contained in:
@ -111,7 +111,12 @@ export default Ember.Component.extend({
|
||||
unregisterHoverTooltip($(".info[data-tooltip]"));
|
||||
},
|
||||
|
||||
showError: Ember.computed.or("showTimeoutError", "showExceptionError"),
|
||||
showError: Ember.computed.or(
|
||||
"showTimeoutError",
|
||||
"showExceptionError",
|
||||
"showNotFoundError"
|
||||
),
|
||||
showNotFoundError: Ember.computed.equal("model.error", "not_found"),
|
||||
showTimeoutError: Ember.computed.equal("model.error", "timeout"),
|
||||
showExceptionError: Ember.computed.equal("model.error", "exception"),
|
||||
|
||||
@ -274,7 +279,7 @@ export default Ember.Component.extend({
|
||||
if (!this.get("startDate") || !this.get("endDate")) {
|
||||
report = sort(filteredReports)[0];
|
||||
} else {
|
||||
let reportKey = this.get("reportKey");
|
||||
const reportKey = this.get("reportKey");
|
||||
|
||||
report = sort(
|
||||
filteredReports.filter(r => r.report_key.includes(reportKey))
|
||||
@ -283,6 +288,10 @@ export default Ember.Component.extend({
|
||||
if (!report) return;
|
||||
}
|
||||
|
||||
if (report.error === "not_found") {
|
||||
this.set("showFilteringUI", false);
|
||||
}
|
||||
|
||||
this._renderReport(
|
||||
report,
|
||||
this.get("forcedModes"),
|
||||
|
Reference in New Issue
Block a user