discourse/app/assets/javascripts/admin/addon/routes/admin-web-hooks-show-events.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
543 B
JavaScript
Raw Normal View History

import DiscourseRoute from "discourse/routes/discourse";
2019-10-31 16:28:10 -04:00
import { get } from "@ember/object";
export default DiscourseRoute.extend({
2016-06-15 13:49:57 -04:00
model(params) {
2019-11-01 13:57:22 -04:00
return this.store.findAll("web-hook-event", get(params, "web_hook_id"));
2016-06-15 13:49:57 -04:00
},
setupController(controller, model) {
controller.set("model", model);
2016-09-13 19:54:53 -04:00
controller.subscribe();
},
deactivate() {
this.controllerFor("adminWebHooks.showEvents").unsubscribe();
2016-06-15 13:49:57 -04:00
},
renderTemplate() {
this.render("admin/templates/web-hooks-show-events", { into: "adminApi" });
2016-06-15 13:49:57 -04:00
},
});