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
@@ -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;
@@ -3,7 +3,7 @@
<div class="community-health section">
<div class="section-title">
<h2>{{i18n "admin.dashboard.community_health"}}</h2>
{{period-chooser period=period action="changePeriod"}}
{{period-chooser period=period action="changePeriod" content=availablePeriods fullDay=true}}
</div>
<div class="section-body">