FEATURE: Export any type of report supporting table mode. (#7662)

This commit is contained in:
Bianca Nenciu
2019-06-28 09:50:31 +03:00
committed by Joffrey JAFFEUX
parent 847f2943e8
commit b2eb0f4ad6
5 changed files with 75 additions and 24 deletions

View File

@@ -16,8 +16,8 @@ const Report = Discourse.Model.extend({
higher_is_better: true,
@computed("modes")
onlyTable(modes) {
return modes.length === 1 && modes[0] === "table";
isTable(modes) {
return modes.some(mode => mode === "table");
},
@computed("type", "start_date", "end_date")