9ed5aad186
no issue - the upcoming Module Unification re-organisation in Ember will no longer support nested components - this PR pre-emptively moves our usage of nested components into a flat file structure
13 lines
324 B
JavaScript
13 lines
324 B
JavaScript
import ModalComponent from 'ghost-admin/components/modal-base';
|
|
import {invokeAction} from 'ember-invoke-action';
|
|
|
|
export default ModalComponent.extend({
|
|
actions: {
|
|
confirm() {
|
|
invokeAction(this, 'confirm').finally(() => {
|
|
this.send('closeModal');
|
|
});
|
|
}
|
|
}
|
|
});
|