UI: improves dashboard table reports

- support for avatars
- support for topic/post/user type in reports
- improved totals row UI
- minor css tweaks
This commit is contained in:
Joffrey JAFFEUX
2018-07-31 17:35:13 -04:00
committed by GitHub
parent 6aee22b88f
commit 37252c1a5e
13 changed files with 555 additions and 224 deletions

View File

@ -67,14 +67,14 @@ export default Ember.Component.extend({
const computedLabel = label.compute(row);
const value = computedLabel.value;
if (computedLabel.type === "link" || (value && !isNumeric(value))) {
if (!computedLabel.countable || !value || !isNumeric(value)) {
return undefined;
} else {
return sum + value;
}
};
totalsRow[label.property] = rows.reduce(reducer, 0);
totalsRow[label.mainProperty] = rows.reduce(reducer, 0);
});
return totalsRow;