mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: do not refresh staff action logs every time the page is loaded
This commit is contained in:
parent
213a496203
commit
2f657b0e32
@ -6,10 +6,6 @@ export default Discourse.Route.extend({
|
||||
this.render('admin/templates/logs/staff-action-logs', {into: 'adminLogs'});
|
||||
},
|
||||
|
||||
setupController: function(controller) {
|
||||
controller.resetFilters();
|
||||
},
|
||||
|
||||
actions: {
|
||||
showDetailsModal(model) {
|
||||
showModal('admin-staff-action-log-details', { model, admin: true });
|
||||
|
@ -33,6 +33,7 @@ export default Discourse.Route.extend({
|
||||
viewActionLogs(username) {
|
||||
const controller = this.controllerFor('adminLogs.staffActionLogs');
|
||||
this.transitionTo('adminLogs.staffActionLogs').then(() => {
|
||||
controller.set('filters', Ember.Object.create());
|
||||
controller._changeFilters({ target_user: username });
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user