FIX: do not refresh staff action logs every time the page is loaded

This commit is contained in:
Arpit Jalan 2017-02-22 17:24:52 +05:30
parent 213a496203
commit 2f657b0e32
2 changed files with 1 additions and 4 deletions

View File

@ -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 });

View File

@ -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 });
});
}