Added flag for newsletter paywall feature (#2430)

refs https://github.com/TryGhost/Team/issues/1680
This commit is contained in:
Rishabh Garg 2022-07-26 21:30:21 +05:30 committed by GitHub
parent b5b88e7c5e
commit 47fa59ea72
2 changed files with 14 additions and 0 deletions

View File

@ -59,6 +59,7 @@ export default class FeatureService extends Service {
@feature('urlCache') urlCache;
@feature('beforeAfterCard') beforeAfterCard;
@feature('comments') comments;
@feature('newsletterPaywall') newsletterPaywall;
_user = null;

View File

@ -226,6 +226,19 @@
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Newsletter Paywall</h4>
<p class="gh-expandable-description">
Extends public preview card for newsletters
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="newsletterPaywall" />
</div>
</div>
</div>
</div>
</div>
{{/if}}