Fixed condition for displaying feedback form on Post published

refs #3252
This commit is contained in:
Djordje Vlaisavljevic 2023-05-23 22:40:55 +01:00
parent 2ceecaa1cd
commit af907b70cb

View File

@ -79,9 +79,11 @@
{{/if}}
</div>
{{else}}
<a href={{post.url}} class="gh-post-bookmark-wrapper" target="_blank" rel="noopener noreferrer" data-test-complete-bookmark>
<GhPostBookmark @post={{post}} />
</a>
{{#unless post.lexical}}
<a href={{post.url}} class="gh-post-bookmark-wrapper" target="_blank" rel="noopener noreferrer" data-test-complete-bookmark>
<GhPostBookmark @post={{post}} />
</a>
{{/unless}}
{{#if post.isScheduled}}
<p class="gh-publish-confirmation">
@ -96,12 +98,11 @@
</button>
</p>
{{else}}
{{#if (feature 'lexicalEditor')}}
{{#if post.lexical}}
<FeedbackLexical::PostCompleteForm @post={{@publishOptions.post}} />
<LinkTo @route="dashboard" class="gh-feedback-lexical-published-back">Back to dashboard</LinkTo>
{{!-- <button class="gh-feedback-lexical-published-back"type="button">Back to dashboard</button> --}}
{{/if}}
{{#unless (feature 'lexicalEditor')}}
{{#unless post.lexical}}
<p class="gh-publish-confirmation gh-publish-confirmation-with-feedback">
<button
type="button"