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

19 lines
451 B
Plaintext
Raw Normal View History

2016-06-16 01:49:57 +08:00
export default Discourse.Route.extend({
model(params) {
return this.store.findAll('web-hook-event', Ember.get(params, 'web_hook_id'));
},
setupController(controller, model) {
controller.set('model', model);
2016-09-14 07:54:53 +08:00
controller.subscribe();
},
deactivate() {
this.controllerFor('adminWebHooks.showEvents').unsubscribe();
2016-06-16 01:49:57 +08:00
},
renderTemplate() {
this.render('admin/templates/web-hooks-show-events', { into: 'admin' });
}
});