Ghost/ghost/admin/app/routes/settings/integration/webhooks/edit.js

15 lines
363 B
JavaScript
Raw Normal View History

import Route from '@ember/routing/route';
export default Route.extend({
model(params) {
let integration = this.modelFor('settings.integration');
let webhook = integration.webhooks.findBy('id', params.webhook_id);
return webhook;
},
deactivate() {
this._super(...arguments);
this.controller.reset();
}
});