mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 12:37:16 +08:00
Improvements to new community dashboard
- Limit dashboard to yearly,quarterly,monthly,weekly - Always prefer UTC full days for reporting
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user