mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +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>
20 lines
505 B
JavaScript
20 lines
505 B
JavaScript
import Controller from '@ember/controller';
|
|
import {alias} from '@ember/object/computed';
|
|
|
|
export default Controller.extend({
|
|
webhook: alias('model'),
|
|
|
|
actions: {
|
|
save() {
|
|
return this.webhook.save();
|
|
},
|
|
|
|
cancel() {
|
|
// 'new' route's dectivate hook takes care of rollback
|
|
return this.webhook.get('integration').then((integration) => {
|
|
this.transitionToRoute('integration', integration);
|
|
});
|
|
}
|
|
}
|
|
});
|