mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
15 lines
363 B
JavaScript
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();
|
||
|
}
|
||
|
});
|