mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-17 13:31:39 +03:00
e5b6db173c
- removed unused integration files (was restructured under Settings / integrations) - removed unused routes
25 lines
616 B
JavaScript
25 lines
616 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('settings.integration', integration);
|
|
});
|
|
}
|
|
},
|
|
|
|
reset() {
|
|
this.webhook.rollbackAttributes();
|
|
this.webhook.errors.clear();
|
|
}
|
|
});
|