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

Added offers Alpha flag

This commit is contained in:
Peter Zimon 2021-09-22 13:20:15 +02:00
parent 4dcc594193
commit 01524cb735
3 changed files with 41 additions and 23 deletions

View file

@ -55,6 +55,7 @@ export default Service.extend({
matchHelper: feature('matchHelper'),
multipleProducts: feature('multipleProducts'),
membersFiltering: feature('membersFiltering', {developer: true}),
offers: feature('offers', {developer: true}),
oauthLogin: feature('oauthLogin', {developer: true}),
emailOnlyPosts: feature('emailOnlyPosts', {developer: true}),
customThemeSettings: feature('customThemeSettings', {developer: true}),

View file

@ -313,6 +313,19 @@
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Offers</h4>
<p class="gh-expandable-description">
Provide targeted discounts to new signups
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="offers" />
</div>
</div>
</div>
</div>
</div>
{{/if}}

View file

@ -220,6 +220,8 @@
{{/liquid-if}}
</div>
</div>
{{#if (feature "offers")}}
{{#if this.settings.stripeConnectAccountId}}
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
@ -236,7 +238,7 @@
<h4>Provide special offers to new signups</h4>
<p>
Boost your subscriptions by creating targeted discounts to potential members.
<a href="https://ghost.org/help/">Learn more</a>
<a href="https://ghost.org/help/" target="_blank">Learn more</a>
</p>
<button type="button" class="gh-btn gh-btn-green gh-btn-icon">
<span>{{svg-jar "add"}} Add offer</span>
@ -246,6 +248,8 @@
{{/liquid-if}}
</div>
</div>
{{/if}}
{{/if}}
</section>
</div>
</section>