mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Export any type of report supporting table mode. (#7662)
This commit is contained in:
committed by
Joffrey JAFFEUX
parent
847f2943e8
commit
b2eb0f4ad6
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user