mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +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();
|
|
}
|
|
});
|