Ghost/ghost/admin/app/controllers/integrations/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

18 lines
406 B
JavaScript

import Controller from '@ember/controller';
import {alias} from '@ember/object/computed';
export default Controller.extend({
integration: alias('model'),
actions: {
save() {
return this.integration.save();
},
cancel() {
// 'new' route's dectivate hook takes care of rollback
this.transitionToRoute('integrations');
}
}
});