mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-19 12:02:27 -05:00
23 lines
775 B
JavaScript
23 lines
775 B
JavaScript
export default Discourse.Route.extend({
|
|
// TODO: make this automatic using an `{{outlet}}`
|
|
renderTemplate: function() {
|
|
this.render('admin/templates/logs/staff_action_logs', {into: 'adminLogs'});
|
|
},
|
|
|
|
setupController: function(controller) {
|
|
controller.resetFilters();
|
|
controller.refresh();
|
|
},
|
|
|
|
actions: {
|
|
showDetailsModal: function(logRecord) {
|
|
Discourse.Route.showModal(this, 'admin_staff_action_log_details', logRecord);
|
|
this.controllerFor('modal').set('modalClass', 'log-details-modal');
|
|
},
|
|
|
|
showCustomDetailsModal: function(logRecord) {
|
|
Discourse.Route.showModal(this, logRecord.action_name + '_details', logRecord);
|
|
this.controllerFor('modal').set('modalClass', 'tabbed-modal log-details-modal');
|
|
}
|
|
}
|
|
});
|