From 8dff121f735f58e35284d200efe9e2a1a6edb8a4 Mon Sep 17 00:00:00 2001 From: Michael Barrett <991592+mike182uk@users.noreply.github.com> Date: Mon, 17 Apr 2023 11:08:47 +0100 Subject: [PATCH] Added postHistory feature flag (#16645) no issue Added flag to enable / disable post history from within the editor --- ghost/admin/app/services/feature.js | 1 + ghost/admin/app/templates/settings/labs.hbs | 13 +++++++++++++ ghost/core/core/shared/labs.js | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ghost/admin/app/services/feature.js b/ghost/admin/app/services/feature.js index c8ab948c7c..224d8e7333 100644 --- a/ghost/admin/app/services/feature.js +++ b/ghost/admin/app/services/feature.js @@ -73,6 +73,7 @@ export default class FeatureService extends Service { @feature('makingItRain') makingItRain; @feature('migrateApp') migrateApp; @feature('i18n') i18n; + @feature('postHistory') postHistory; _user = null; diff --git a/ghost/admin/app/templates/settings/labs.hbs b/ghost/admin/app/templates/settings/labs.hbs index 2b2ce3fd0b..3a265b7541 100644 --- a/ghost/admin/app/templates/settings/labs.hbs +++ b/ghost/admin/app/templates/settings/labs.hbs @@ -305,6 +305,19 @@ +
{{/if}} diff --git a/ghost/core/core/shared/labs.js b/ghost/core/core/shared/labs.js index 4c34811b31..1a52915e75 100644 --- a/ghost/core/core/shared/labs.js +++ b/ghost/core/core/shared/labs.js @@ -39,7 +39,8 @@ const ALPHA_FEATURES = [ 'lexicalMultiplayer', 'websockets', 'stripeAutomaticTax', - 'makingItRain' + 'makingItRain', + 'postHistory' ]; module.exports.GA_KEYS = [...GA_FEATURES];