2016-06-15 13:49:57 -04: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-13 19:54:53 -04:00
|
|
|
controller.subscribe();
|
|
|
|
},
|
|
|
|
|
|
|
|
deactivate() {
|
|
|
|
this.controllerFor('adminWebHooks.showEvents').unsubscribe();
|
2016-06-15 13:49:57 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
renderTemplate() {
|
2016-09-19 04:43:06 -04:00
|
|
|
this.render('admin/templates/web-hooks-show-events', { into: 'adminApi' });
|
2016-06-15 13:49:57 -04:00
|
|
|
}
|
|
|
|
});
|