Ghost/ghost/admin/app/routes/settings/integration/webhooks/new.js

14 lines
344 B
JavaScript
Raw Normal View History

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