Ghost/ghost/admin/app/components/modal-free-membership-settings.js
Rishabh 22de604ede Added free membership settings modal
refs https://github.com/TryGhost/Team/issues/648

All sites will include a default Free "Product" which is used for free memberships. This change adds UI for handling free membership settings. Also -

- Updates product icons in list and responsive sizes
- Copy updates
2021-05-04 21:42:48 +05:30

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();
}
}
}