2022-01-27 14:40:11 +03:00
|
|
|
<div class="mb4 gh-setting-large-dropdown">
|
2021-05-14 17:44:10 +03:00
|
|
|
<div class="gh-expandable-header">
|
2021-05-14 17:01:50 +03:00
|
|
|
<div>
|
|
|
|
<h4 class="gh-expandable-title">Default post access</h4>
|
2021-05-18 16:59:32 +03:00
|
|
|
<p class="gh-expandable-description">When a new post is created, who should have access?</p>
|
2021-05-14 17:01:50 +03:00
|
|
|
</div>
|
2021-05-14 17:44:10 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<PowerSelect
|
|
|
|
@options={{this.options}}
|
|
|
|
@selected={{this.selectedOption}}
|
|
|
|
@onChange={{this.setDefaultContentVisibility}}
|
|
|
|
@disabled={{eq this.settings.membersSignupAccess "none"}}
|
2021-05-17 11:42:44 +03:00
|
|
|
@triggerClass="gh-setting-dropdown"
|
2021-05-17 20:36:36 +03:00
|
|
|
@dropdownClass="gh-setting-dropdown-list"
|
2021-05-14 17:44:10 +03:00
|
|
|
as |option|
|
|
|
|
>
|
2021-05-17 20:36:36 +03:00
|
|
|
<div class="gh-setting-dropdown-content">
|
2021-05-17 11:42:44 +03:00
|
|
|
{{svg-jar option.icon class=(concat "w8 h8 mr2 fill-" (or option.icon_color "green"))}}
|
2021-05-14 17:44:10 +03:00
|
|
|
<div class="gh-radio-label">
|
|
|
|
{{option.name}}<br>
|
|
|
|
<div class="gh-radio-desc">{{option.description}}</div>
|
2021-05-14 17:01:50 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-14 17:44:10 +03:00
|
|
|
</PowerSelect>
|
2021-07-02 19:30:14 +03:00
|
|
|
{{#if this.hasVisibilityFilter}}
|
|
|
|
<div class="mt2">
|
|
|
|
<GhMembersSegmentSelect
|
|
|
|
@hideLabels={{true}}
|
2021-07-16 16:01:23 +03:00
|
|
|
@selectDefaultProduct={{true}}
|
2021-07-02 19:30:14 +03:00
|
|
|
@segment={{this.settings.defaultContentVisibility}}
|
|
|
|
@onChange={{action "setVisibility"}}
|
|
|
|
@renderInPlace={{true}}
|
|
|
|
@hideDefaultSegments={{true}}
|
|
|
|
@hideOptionsWhenAllSelected={{true}}
|
|
|
|
/>
|
2021-07-16 16:01:23 +03:00
|
|
|
{{#if this.showSegmentError}}
|
|
|
|
<p class="response red">
|
2021-07-19 13:38:51 +03:00
|
|
|
Please select at least one tier
|
2021-07-16 16:01:23 +03:00
|
|
|
</p>
|
|
|
|
{{/if}}
|
2021-07-02 19:30:14 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|