mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
cb3b01c020
no issue - the membership setting screen will be covering a lot of areas, having individual settings as discrete components allows for easier re-organisation and cleaner parent templates and controllers
22 lines
588 B
JavaScript
22 lines
588 B
JavaScript
import Component from '@glimmer/component';
|
|
import {action} from '@ember/object';
|
|
import {inject as service} from '@ember/service';
|
|
import {tracked} from '@glimmer/tracking';
|
|
|
|
export default class SettingsMembersSubscriptionAccess extends Component {
|
|
@service settings;
|
|
|
|
@tracked signupAccessOpen = false;
|
|
|
|
@action
|
|
toggleSignupAccess() {
|
|
this.signupAccessOpen = !this.signupAccessOpen;
|
|
}
|
|
|
|
@action
|
|
setSignupAccess(value) {
|
|
this.settings.set('membersSignupAccess', value);
|
|
this.settings.set('defaultContentVisibility', 'public');
|
|
}
|
|
}
|