0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Added toggle for the emailOnlyPosts flag

closes https://github.com/TryGhost/Team/issues/902

- Toggle will control the `emailOnlyPosts` labs flag enabling "email-only posts" feature
This commit is contained in:
Naz 2021-08-02 13:32:03 +04:00
parent db092be00c
commit 55785d0958
2 changed files with 15 additions and 1 deletions

View file

@ -60,6 +60,7 @@ export default Service.extend({
featureImgDragDrop: feature('featureImgDragDrop', {developer: true}), featureImgDragDrop: feature('featureImgDragDrop', {developer: true}),
oauthLogin: feature('oauthLogin', {developer: true}), oauthLogin: feature('oauthLogin', {developer: true}),
checkEmailList: feature('checkEmailList', {developer: true}), checkEmailList: feature('checkEmailList', {developer: true}),
emailOnlyPosts: feature('emailOnlyPosts', {developer: true}),
_user: null, _user: null,

View file

@ -323,6 +323,19 @@
</div> </div>
</div> </div>
</div> </div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Email-only posts</h4>
<p class="gh-expandable-description">
Enable posts visible only in email
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="emailOnlyPosts" />
</div>
</div>
</div>
</div> </div>
</div> </div>
{{/if}} {{/if}}