mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
Rename .js.es6
to .js
in the admin application
This commit is contained in:
@ -0,0 +1,20 @@
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
import Controller from "@ember/controller";
|
||||
|
||||
export default Controller.extend({
|
||||
queryParams: ["start_date", "end_date", "filters"],
|
||||
start_date: null,
|
||||
end_date: null,
|
||||
filters: null,
|
||||
|
||||
@discourseComputed("model.type")
|
||||
reportOptions(type) {
|
||||
let options = { table: { perPage: 50, limit: 50, formatNumbers: false } };
|
||||
|
||||
if (type === "top_referred_topics") {
|
||||
options.table.limit = 10;
|
||||
}
|
||||
|
||||
return options;
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user