mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-17 05:21:36 +03:00
25 lines
590 B
JavaScript
25 lines
590 B
JavaScript
|
import ModalBase from 'ghost-admin/components/modal-base';
|
||
|
import classic from 'ember-classic-decorator';
|
||
|
import {action} from '@ember/object';
|
||
|
|
||
|
// TODO: update modals to work fully with Glimmer components
|
||
|
@classic
|
||
|
export default class ModalFreeMembershipSettings extends ModalBase {
|
||
|
init() {
|
||
|
super.init(...arguments);
|
||
|
}
|
||
|
|
||
|
@action
|
||
|
close(event) {
|
||
|
event?.preventDefault?.();
|
||
|
this.closeModal();
|
||
|
}
|
||
|
|
||
|
actions = {
|
||
|
// needed because ModalBase uses .send() for keyboard events
|
||
|
closeModal() {
|
||
|
this.close();
|
||
|
}
|
||
|
}
|
||
|
}
|