Enabled member email alerts (#15321)

closes https://github.com/TryGhost/Team/issues/1825
closes https://github.com/TryGhost/Team/issues/1826

- allows site owners/admins to receive email notifications when somebody signs up, becomes paid, or cancels subscription
- owners/admins can set their email preference from staff settings
This commit is contained in:
Rishabh Garg 2022-08-26 09:38:12 +05:30 committed by GitHub
parent 0cbaa8f73d
commit 594ef34871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 17 deletions

View File

@ -252,19 +252,6 @@
</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

@ -18,7 +18,8 @@ const GA_FEATURES = [
'newsletterPaywall',
'freeTrial',
'compExpiring',
'searchHelper'
'searchHelper',
'emailAlerts'
];
// NOTE: this allowlist is meant to be used to filter out any unexpected
@ -31,8 +32,7 @@ const BETA_FEATURES = [
const ALPHA_FEATURES = [
'auditLog',
'urlCache',
'beforeAfterCard',
'emailAlerts'
'beforeAfterCard'
];
module.exports.GA_KEYS = [...GA_FEATURES];

View File

@ -619,7 +619,7 @@ exports[`Settings API Edit Can edit a setting 2: [headers] 1`] = `
Object {
"access-control-allow-origin": "http://127.0.0.1:2369",
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
"content-length": "3387",
"content-length": "3408",
"content-type": "application/json; charset=utf-8",
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
"vary": "Origin, Accept-Encoding",