Added link to dashboard on post-published screen

closes https://linear.app/tryghost/issue/IPC-96/add-link-back-to-dashboard-to-post-published-screen

- When the onboardingChecklist feature flag is enabled, hides "Back to editor" link on post-published screen and shows "Back to dashboard" instead. There is already one link back to the editor, and it makes sense to let users go back to the dashboard easily.
This commit is contained in:
Djordje Vlaisavljevic 2024-03-28 16:38:58 +00:00
parent f20c79ee54
commit c3355d0067

View File

@ -97,14 +97,18 @@
</p>
{{else}}
<p class="gh-publish-confirmation gh-publish-confirmation-with-feedback">
<button
{{#if (feature "onboardingChecklist")}}
<LinkTo @route="dashboard" class="gh-back-to-editor" title="Back to dashboard">Back to dashboard</LinkTo>
{{else}}
<button
type="button"
class="gh-back-to-editor"
{{on "click" @close}}
data-test-button="back-to-editor"
>
<span>Back to editor</span>
</button>
</button>
{{/if}}
</p>
{{/if}}
{{/if}}