mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
6e29b546f7
no issue - replace instances of `this.get('action')()` with ember-invoke-action syntax
20 lines
404 B
JavaScript
20 lines
404 B
JavaScript
import ModalComponent from 'ghost/components/modals/base';
|
|
import {invokeAction} from 'ember-invoke-action';
|
|
|
|
export default ModalComponent.extend({
|
|
|
|
submitting: false,
|
|
|
|
user: null,
|
|
|
|
actions: {
|
|
confirm() {
|
|
this.set('submitting', true);
|
|
|
|
invokeAction(this, 'confirm').finally(() => {
|
|
this.send('closeModal');
|
|
});
|
|
}
|
|
}
|
|
});
|