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:
Joffrey JAFFEUX
2018-04-16 16:01:29 +02:00
committed by GitHub
parent 4fb41663b3
commit cfe88a67e1
6 changed files with 53 additions and 51 deletions

View File

@ -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: {