mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 01:32:23 +08:00
e5311ab645
* DEV: Discourse.Route -> DiscourseRoute with import * ran prettier on all routes * prettiered one more file
25 lines
748 B
JavaScript
25 lines
748 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
import showModal from "discourse/lib/show-modal";
|
|
|
|
export default DiscourseRoute.extend({
|
|
// TODO: make this automatic using an `{{outlet}}`
|
|
renderTemplate: function() {
|
|
this.render("admin/templates/logs/staff-action-logs", {
|
|
into: "adminLogs"
|
|
});
|
|
},
|
|
|
|
actions: {
|
|
showDetailsModal(model) {
|
|
showModal("admin-staff-action-log-details", { model, admin: true });
|
|
this.controllerFor("modal").set("modalClass", "log-details-modal");
|
|
},
|
|
|
|
showCustomDetailsModal(model) {
|
|
let modal = showModal("admin-theme-change", { model, admin: true });
|
|
this.controllerFor("modal").set("modalClass", "history-modal");
|
|
modal.loadDiff();
|
|
}
|
|
}
|
|
});
|