mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
d51f2bcf23
closes https://github.com/TryGhost/Admin/pull/2107 - updated related babel dependencies - bumped eslint - ran `yarn lint:js --fix` - added eslint ignore comments for some required non-camel-case properties
24 lines
601 B
JavaScript
24 lines
601 B
JavaScript
import Controller from '@ember/controller';
|
|
import classic from 'ember-classic-decorator';
|
|
import {action} from '@ember/object';
|
|
import {alias} from '@ember/object/computed';
|
|
|
|
@classic
|
|
export default class NewController extends Controller {
|
|
@alias('model')
|
|
webhook;
|
|
|
|
@action
|
|
save() {
|
|
return this.webhook.save();
|
|
}
|
|
|
|
@action
|
|
cancel() {
|
|
// 'new' route's dectivate hook takes care of rollback
|
|
return this.webhook.get('integration').then((integration) => {
|
|
this.transitionToRoute('settings.integration', integration);
|
|
});
|
|
}
|
|
}
|