0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Fixed post diffing not being hidden behind feature flag

This commit is contained in:
Sanne de Vries 2023-04-21 08:43:28 +01:00
parent e5066252bd
commit ffcba43aa9

View file

@ -3,18 +3,11 @@
<div class="gh-post-history-main">
<div class="gh-koenig-editor-pane flex flex-column mih-100 {{if this.showDifferences "show-diff" ""}}">
<div class="gh-editor-feature-image-container"></div>
{{#if this.diffHtml}}
{{#if this.showDifferences}}
{{{this.diffHtml}}}
{{#if (and this.diffHtml this.showDifferences (feature 'postDiffing'))}}
{{{this.diffHtml}}}
{{else if this.selectedHTML}}
{{{this.selectedHTML}}}
{{/if}}
{{/if}}
{{#unless this.showDifferences}}
{{#if this.selectedHTML}}
{{{this.selectedHTML}}}
{{/if}}
{{/unless}}
<div class="gh-post-history-hidden-lexical previous">
<div class="gh-editor-title">{{this.previousTitle}}</div>
<KoenigLexicalEditor @lexical={{this.comparisonRevision.lexical}} @cardConfig={{this.cardConfig}} @registerAPI={{action "registerComparisonEditorApi"}}/>