0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Revert "Removed 'View in browser' from email modal"

This reverts commit 8919ff8e7e.
This commit is contained in:
Daniël van der Winden 2024-08-13 15:23:24 +02:00
parent b26eb0aa3c
commit 7675b27924

View file

@ -114,7 +114,24 @@
@class="gh-btn gh-btn-primary gh-btn-icon" />
{{else}}
{{#if this.post.emailOnly}}
<button
{{#unless this.post.isScheduled}}
<button
class="gh-btn"
type="button"
{{on "click" this.viewInBrowser}}
{{on "mousedown" (optional this.noop)}}
>
<span>View in browser</span>
</button>
{{/unless}}
{{else}}
<GhTaskButton
@buttonText="Copy preview link"
@task={{this.handleCopyPreviewLink}}
@successText="Link copied"
@class="gh-btn gh-btn-icon" />
{{/if}}
<button
class="gh-btn gh-btn-primary"
type="button"
{{on "click" @close}}
@ -122,7 +139,6 @@
>
<span>OK</span>
</button>
{{/if}}
{{/if}}
</footer>
</div>