mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +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
23 lines
612 B
JavaScript
23 lines
612 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 SettingsMembersDefaultPostAccess extends Component {
|
|
@service settings;
|
|
|
|
@tracked postAccessOpen = false;
|
|
|
|
@action
|
|
togglePostAccess() {
|
|
this.postAccessOpen = !this.postAccessOpen;
|
|
}
|
|
|
|
@action
|
|
setDefaultContentVisibility(value) {
|
|
if (this.settings.get('membersSignupAccess') !== 'none') {
|
|
this.settings.set('defaultContentVisibility', value);
|
|
}
|
|
}
|
|
}
|