mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:26:04 +08:00
f50280a889
This makes it easier to share bulk topic operations, for example from a plugin's custom topic list.
26 lines
762 B
JavaScript
26 lines
762 B
JavaScript
import showModal from 'discourse/lib/show-modal';
|
|
|
|
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(logRecord) {
|
|
showModal('admin_staff_action_log_details', logRecord);
|
|
this.controllerFor('modal').set('modalClass', 'log-details-modal');
|
|
},
|
|
|
|
showCustomDetailsModal(logRecord) {
|
|
showModal(logRecord.action_name + '_details', logRecord);
|
|
this.controllerFor('modal').set('modalClass', 'tabbed-modal log-details-modal');
|
|
}
|
|
}
|
|
});
|