mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
✨ 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:
parent
bbf1e79fbb
commit
4f3e340c03
@ -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() {
|
||||
|
@ -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';
|
||||
|
@ -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}),
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user