mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
new dashboard quality pass (code, tests and UI)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
|
||||
export default Ember.Mixin.create({
|
||||
classNameBindings: ["isLoading"],
|
||||
classNameBindings: ["isLoading", "dataSourceNames"],
|
||||
reports: null,
|
||||
isLoading: false,
|
||||
dataSourceNames: "",
|
||||
@@ -25,7 +25,6 @@ export default Ember.Mixin.create({
|
||||
// the array contains only unique values
|
||||
reports = reports.uniqBy("report_key");
|
||||
|
||||
|
||||
const sort = (r) => {
|
||||
if (r.length > 1) {
|
||||
return dataSourceNames
|
||||
@@ -40,7 +39,6 @@ export default Ember.Mixin.create({
|
||||
return sort(reports);
|
||||
}
|
||||
|
||||
|
||||
return sort(reports.filter(report => {
|
||||
return report.report_key.includes(startDate.format("YYYYMMDD")) &&
|
||||
report.report_key.includes(endDate.format("YYYYMMDD"));
|
||||
|
||||
Reference in New Issue
Block a user