From 55785d09587153b9d925e3eef1db33d7df077c4d Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 2 Aug 2021 13:32:03 +0400 Subject: [PATCH] Added toggle for the `emailOnlyPosts` flag closes https://github.com/TryGhost/Team/issues/902 - Toggle will control the `emailOnlyPosts` labs flag enabling "email-only posts" feature --- ghost/admin/app/services/feature.js | 1 + ghost/admin/app/templates/settings/labs.hbs | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ghost/admin/app/services/feature.js b/ghost/admin/app/services/feature.js index 94fba5fcfe..1b8c05f0f8 100644 --- a/ghost/admin/app/services/feature.js +++ b/ghost/admin/app/services/feature.js @@ -60,6 +60,7 @@ export default Service.extend({ featureImgDragDrop: feature('featureImgDragDrop', {developer: true}), oauthLogin: feature('oauthLogin', {developer: true}), checkEmailList: feature('checkEmailList', {developer: true}), + emailOnlyPosts: feature('emailOnlyPosts', {developer: true}), _user: null, diff --git a/ghost/admin/app/templates/settings/labs.hbs b/ghost/admin/app/templates/settings/labs.hbs index 8dfca3ef60..d39371436c 100644 --- a/ghost/admin/app/templates/settings/labs.hbs +++ b/ghost/admin/app/templates/settings/labs.hbs @@ -310,7 +310,7 @@ -
+

Check Email

@@ -323,6 +323,19 @@
+
+
+
+

Email-only posts

+

+ Enable posts visible only in email +

+
+
+ +
+
+
{{/if}}