mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
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);
|
||
|
}
|
||
|
}
|
||
|
}
|