Added postHistory feature flag (#16645)

no issue

Added flag to enable / disable post history from within the editor
This commit is contained in:
Michael Barrett 2023-04-17 11:08:47 +01:00 committed by GitHub
parent 7f184d2451
commit 8dff121f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View File

@ -73,6 +73,7 @@ export default class FeatureService extends Service {
@feature('makingItRain') makingItRain;
@feature('migrateApp') migrateApp;
@feature('i18n') i18n;
@feature('postHistory') postHistory;
_user = null;

View File

@ -305,6 +305,19 @@
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Post history</h4>
<p class="gh-expandable-description">
Enables post history revision within the editor
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="postHistory" />
</div>
</div>
</div>
</div>
</div>
{{/if}}

View File

@ -39,7 +39,8 @@ const ALPHA_FEATURES = [
'lexicalMultiplayer',
'websockets',
'stripeAutomaticTax',
'makingItRain'
'makingItRain',
'postHistory'
];
module.exports.GA_KEYS = [...GA_FEATURES];