Ghost/ghost/admin/app/components/settings/members-default-post-access.hbs
Sanne de Vries 21b4b15a1c Improved Email newsletter settings page (#2207)
Updated email newsletter settings

- Added toggle to disable email newsletters
- Hides email related UI when email is completely turned off
- Rearranged email newsletter settings
- Added publish-menu preview in 
- Changed default-recipients setting
- Updated publish-menu to show Publish as default action
- Removed the confirmation modal during publishing when no emails are intended to be sent
2022-01-27 12:40:11 +01:00

45 lines
1.6 KiB
Handlebars

<div class="mb4 gh-setting-large-dropdown">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Default post access</h4>
<p class="gh-expandable-description">When a new post is created, who should have access?</p>
</div>
</div>
<PowerSelect
@options={{this.options}}
@selected={{this.selectedOption}}
@onChange={{this.setDefaultContentVisibility}}
@disabled={{eq this.settings.membersSignupAccess "none"}}
@triggerClass="gh-setting-dropdown"
@dropdownClass="gh-setting-dropdown-list"
as |option|
>
<div class="gh-setting-dropdown-content">
{{svg-jar option.icon class=(concat "w8 h8 mr2 fill-" (or option.icon_color "green"))}}
<div class="gh-radio-label">
{{option.name}}<br>
<div class="gh-radio-desc">{{option.description}}</div>
</div>
</div>
</PowerSelect>
{{#if this.hasVisibilityFilter}}
<div class="mt2">
<GhMembersSegmentSelect
@hideLabels={{true}}
@selectDefaultProduct={{true}}
@segment={{this.settings.defaultContentVisibility}}
@onChange={{action "setVisibility"}}
@renderInPlace={{true}}
@hideDefaultSegments={{true}}
@hideOptionsWhenAllSelected={{true}}
/>
{{#if this.showSegmentError}}
<p class="response red">
Please select at least one tier
</p>
{{/if}}
</div>
{{/if}}
</div>