mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
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:
parent
09ead74f21
commit
71052cb33e
@ -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">
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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>
|
||||
|
@ -41,6 +41,7 @@ const ALPHA_FEATURES = [
|
||||
'stripeAutomaticTax',
|
||||
'makingItRain',
|
||||
'postHistory',
|
||||
'postDiffing',
|
||||
'announcementBar',
|
||||
'imageEditor'
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user