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