mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
737db37175
- Restructured Admin so that Integrations becomes a subpage of Settings.
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();
|
|
}
|
|
});
|