Ghost/ghost/admin/app/components/modal-leave-editor.js
Austin Burdine ad5528b078 Remove ember-invoke-action (#978)
closes TryGhost/Ghost#9477
- remove ember-invoke-action in favor of straight function calls
2018-03-20 14:57:59 +00:00

16 lines
343 B
JavaScript

import ModalComponent from 'ghost-admin/components/modal-base';
import RSVP from 'rsvp';
export default ModalComponent.extend({
actions: {
confirm() {
this.confirm().finally(() => {
this.send('closeModal');
});
}
},
// Allowed actions
confirm: () => RSVP.resolve()
});