mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
14 lines
344 B
JavaScript
14 lines
344 B
JavaScript
|
import Route from '@ember/routing/route';
|
||
|
|
||
|
export default Route.extend({
|
||
|
model() {
|
||
|
let integration = this.modelFor('settings.integration');
|
||
|
return this.store.createRecord('webhook', {integration});
|
||
|
},
|
||
|
|
||
|
deactivate() {
|
||
|
this._super(...arguments);
|
||
|
this.controller.webhook.rollbackAttributes();
|
||
|
}
|
||
|
});
|