Promoted email-only feature to general availability

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

-- Email-only is not considered a general availability feature and can be used without special flags.
- It allows to publish a new post type "email only" that only goes out as an email newletter and is available through an undescoverable URL (does not appear anywhere publicly similarly to preview posts) on the site.
- The new "send" option in the post publishing menu allows to send this new type of post.
This commit is contained in:
Naz 2021-10-07 12:07:37 +02:00
parent bbf1e79fbb
commit 4f3e340c03
4 changed files with 2 additions and 18 deletions

View File

@ -33,7 +33,7 @@ export default class GhPublishMenuDraftComponent extends Component {
}
get showEmailOnlyInput() {
return this.feature.emailOnlyPosts && this.args.post.isPost;
return this.args.post.isPost;
}
constructor() {

View File

@ -103,11 +103,9 @@ export default Component.extend({
let buttonText;
if (postState === 'draft') {
let publishText = this.feature.emailOnlyPosts ? 'Publish & send' : 'Publish';
switch (distributionAction) {
case 'publish_send':
buttonText = (saveType === 'publish') ? publishText : 'Schedule';
buttonText = (saveType === 'publish') ? 'Publish & send' : 'Schedule';
break;
case 'publish':
buttonText = (saveType === 'publish') ? 'Publish' : 'Schedule';

View File

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

View File

@ -261,19 +261,6 @@
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Email-only posts</h4>
<p class="gh-expandable-description">
Enable posts visible only in email
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="emailOnlyPosts" />
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>