mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
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
20 lines
484 B
JavaScript
20 lines
484 B
JavaScript
import ModalComponent from 'ghost-admin/components/modal-base';
|
|
import {alias} from '@ember/object/computed';
|
|
import {invokeAction} from 'ember-invoke-action';
|
|
import {task} from 'ember-concurrency';
|
|
|
|
export default ModalComponent.extend({
|
|
|
|
subscriber: alias('model'),
|
|
|
|
deleteSubscriber: task(function* () {
|
|
yield invokeAction(this, 'confirm');
|
|
}).drop(),
|
|
|
|
actions: {
|
|
confirm() {
|
|
this.get('deleteSubscriber').perform();
|
|
}
|
|
}
|
|
});
|