0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Added feature flag for email alerts

refs https://github.com/TryGhost/Team/issues/1826

- adds alpha flag for setting up email alerts for staff users
This commit is contained in:
Rishabh 2022-08-25 12:53:40 +05:30
parent 7e3b8ff404
commit 7182ee0e85
3 changed files with 16 additions and 1 deletions

View file

@ -64,6 +64,7 @@ export default class FeatureService extends Service {
@feature('compExpiring') compExpiring;
@feature('memberAttribution') memberAttribution;
@feature('searchHelper') searchHelper;
@feature('emailAlerts') emailAlerts;
_user = null;

View file

@ -252,6 +252,19 @@
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Email alerts</h4>
<p class="gh-expandable-description">
Receive email notifications when somebody signs up, becomes paid, or cancels subscription
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="emailAlerts" />
</div>
</div>
</div>
</div>
</div>
{{/if}}

View file

@ -31,7 +31,8 @@ const ALPHA_FEATURES = [
'auditLog',
'urlCache',
'beforeAfterCard',
'memberAttribution'
'memberAttribution',
'emailAlerts'
];
module.exports.GA_KEYS = [...GA_FEATURES];