mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 09:52:09 +03:00
04d9caefed
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>
18 lines
406 B
JavaScript
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');
|
|
}
|
|
}
|
|
});
|