mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
21 lines
470 B
JavaScript
21 lines
470 B
JavaScript
import {alias} from 'ember-computed';
|
|
import ModalComponent from 'ghost-admin/components/modals/base';
|
|
import {invokeAction} from 'ember-invoke-action';
|
|
|
|
export default ModalComponent.extend({
|
|
|
|
submitting: false,
|
|
|
|
subscriber: alias('model'),
|
|
|
|
actions: {
|
|
confirm() {
|
|
this.set('submitting', true);
|
|
|
|
invokeAction(this, 'confirm').finally(() => {
|
|
this.set('submitting', false);
|
|
});
|
|
}
|
|
}
|
|
});
|