mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add filter by action to staff logs page
This commit is contained in:
@@ -36,8 +36,8 @@ Discourse.StaffActionLog.reopenClass({
|
||||
return this._super(attrs);
|
||||
},
|
||||
|
||||
findAll: function(filter) {
|
||||
return Discourse.ajax("/admin/logs/staff_action_logs.json").then(function(staff_actions) {
|
||||
findAll: function(filters) {
|
||||
return Discourse.ajax("/admin/logs/staff_action_logs.json", { data: filters }).then(function(staff_actions) {
|
||||
return staff_actions.map(function(s) {
|
||||
return Discourse.StaffActionLog.create(s);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user