Added postdiffing feature flag

closes https://github.com/TryGhost/Team/issues/3078

- added post diffing feature flag to isolate it from post history.
This commit is contained in:
Ronald 2023-04-20 14:15:59 +01:00
parent 09ead74f21
commit 71052cb33e
4 changed files with 18 additions and 0 deletions

View File

@ -47,6 +47,7 @@
</button>
<h4>Post history</h4>
</div>
{{#if (feature 'postDiffing')}}
<ul class="nav-list">
<li class="nav-list-item compare-versions">
<div class="for-switch x-small">
@ -60,6 +61,7 @@
</div>
</li>
</ul>
{{/if}}
</div>
<div class="settings-menu-content">
<ul class="nav-list">

View File

@ -74,6 +74,7 @@ export default class FeatureService extends Service {
@feature('migrateApp') migrateApp;
@feature('i18n') i18n;
@feature('postHistory') postHistory;
@feature('postDiffing') postDiffing;
@feature('announcementBar') announcementBar;
@feature('imageEditor') imageEditor;

View File

@ -319,6 +319,20 @@
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Revision Diffing</h4>
<p class="gh-expandable-description">
Enables showing post history differences within the editor
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="postDiffing" />
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>

View File

@ -41,6 +41,7 @@ const ALPHA_FEATURES = [
'stripeAutomaticTax',
'makingItRain',
'postHistory',
'postDiffing',
'announcementBar',
'imageEditor'
];