0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/client/app/components/modals/transfer-owner.js
Austin Burdine f8c0163eb1 deps: ember-invoke-action@1.3.0
no issue
- replace instances of `this.get('action')()` with ember-invoke-action syntax
2016-04-26 16:32:17 -05:00

17 lines
402 B
JavaScript

import ModalComponent from 'ghost/components/modals/base';
import {invokeAction} from 'ember-invoke-action';
export default ModalComponent.extend({
user: null,
submitting: false,
actions: {
confirm() {
this.set('submitting', true);
invokeAction(this, 'confirm').finally(() => {
this.send('closeModal');
});
}
}
});