Ghost/ghost/admin/app/routes/integration/webhooks/new.js
Peter Zimon 04d9caefed Updated navigation (#1832)
no issue

Updated settings navigation to a completely redesigned flow for Ghost 4.0 🎉

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
Co-authored-by: Fabien O'Carroll <fabien@allou.is>
Co-authored-by: Rish <zrishabhgarg@gmail.com>
2021-02-02 16:08:06 +00:00

14 lines
335 B
JavaScript

import Route from '@ember/routing/route';
export default Route.extend({
model() {
let integration = this.modelFor('integration');
return this.store.createRecord('webhook', {integration});
},
deactivate() {
this._super(...arguments);
this.controller.webhook.rollbackAttributes();
}
});