ad5528b078
closes TryGhost/Ghost#9477 - remove ember-invoke-action in favor of straight function calls
16 lines
343 B
JavaScript
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()
|
|
});
|