Ghost/ghost/admin/app/routes/settings/integration/webhooks/edit.js
Peter Zimon 737db37175 Added Integrations as a subpage of Settings
- Restructured Admin so that Integrations becomes a subpage of Settings.
2021-10-18 14:47:59 +02:00

15 lines
363 B
JavaScript

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();
}
});