Allowed setting expiry for complimentary subscriptions

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

- allows site owners to give cardless free trials to members by setting expiry on complimentary subscriptions
- also allows complimentary members to upgrade as paid member
This commit is contained in:
Rishabh 2022-08-24 18:26:58 +05:30 committed by Rishabh Garg
parent 326bb97d2c
commit 968380132b
2 changed files with 3 additions and 16 deletions

View File

@ -226,19 +226,6 @@
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Cardless trials</h4>
<p class="gh-expandable-description">
Add support for expiring complimentary subscriptions
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="compExpiring" />
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>

View File

@ -16,7 +16,8 @@ const messages = {
// flags in this list always return `true`, allows quick global enable prior to full flag removal
const GA_FEATURES = [
'newsletterPaywall',
'freeTrial'
'freeTrial',
'compExpiring'
];
// NOTE: this allowlist is meant to be used to filter out any unexpected
@ -30,8 +31,7 @@ const ALPHA_FEATURES = [
'urlCache',
'beforeAfterCard',
'memberAttribution',
'searchHelper',
'compExpiring'
'searchHelper'
];
module.exports.GA_KEYS = [...GA_FEATURES];