mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
dashboard next: minor quality improvements
* locale for title * minimum chart/table while loading * sort users by type * more spacing in the UI * minor refactoring
This commit is contained in:
@ -8,8 +8,6 @@ export default Ember.Controller.extend({
|
||||
|
||||
@computed("period")
|
||||
startDate(period) {
|
||||
if (period === "all") return null;
|
||||
|
||||
switch (period) {
|
||||
case "yearly":
|
||||
return moment().subtract(1, "year").startOf("day");
|
||||
@ -26,14 +24,14 @@ export default Ember.Controller.extend({
|
||||
case "daily":
|
||||
return moment().startOf("day");
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
},
|
||||
|
||||
@computed("period")
|
||||
endDate(period) {
|
||||
if (period === "all") return null;
|
||||
|
||||
return moment().endOf("day");
|
||||
return period === "all" ? null : moment().endOf("day");
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
Reference in New Issue
Block a user