Improvements to new community dashboard

- Limit dashboard to yearly,quarterly,monthly,weekly
- Always prefer UTC full days for reporting
This commit is contained in:
Sam
2018-05-09 18:05:40 +10:00
parent 36d9f7f814
commit c475905387
6 changed files with 29 additions and 10 deletions

View File

@ -5,12 +5,15 @@ import Report from "admin/models/report";
export default Ember.Controller.extend({
queryParams: ["period"],
period: "all",
period: "monthly",
isLoading: false,
dashboardFetchedAt: null,
exceptionController: Ember.inject.controller("exception"),
diskSpace: Ember.computed.alias("model.attributes.disk_space"),
availablePeriods: ["yearly", "quarterly", "monthly", "weekly"],
fetchDashboard() {
if (this.get("isLoading")) return;