mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: only load staff logs when page is visited
Previously we would load admin staff action logs unconditionally as soon as the controller was instantiated, this is not desirable we only want to run the query when you visit the route.
This commit is contained in:
@@ -9,6 +9,11 @@ export default DiscourseRoute.extend({
|
||||
});
|
||||
},
|
||||
|
||||
activate() {
|
||||
let controller = this.controllerFor("admin-logs-staff-action-logs");
|
||||
if (controller.filters === null) controller.resetFilters();
|
||||
},
|
||||
|
||||
actions: {
|
||||
showDetailsModal(model) {
|
||||
showModal("admin-staff-action-log-details", { model, admin: true });
|
||||
|
||||
Reference in New Issue
Block a user