0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Updated postSuccess modal logic

This commit is contained in:
Daniël van der Winden 2024-08-13 16:02:45 +02:00
parent 7675b27924
commit 7ca10a6c61

View file

@ -112,8 +112,47 @@
@showIcon={{true}}
@successText="Link copied"
@class="gh-btn gh-btn-primary gh-btn-icon" />
{{else}}
{{#if this.post.emailOnly}}
{{/if}}
{{#if (and this.post.isScheduled (not this.post.emailOnly))}}
<GhTaskButton
@buttonText="Copy preview link"
@task={{this.handleCopyPreviewLink}}
@successText="Link copied"
@class="gh-btn gh-btn-icon" />
<button
class="gh-btn gh-btn-primary"
type="button"
{{on "click" @close}}
{{on "mousedown" (optional this.noop)}}
>
<span>OK</span>
</button>
{{/if}}
{{#if (and this.post.isSent (not this.post.isPublished))}}
<button
class="gh-btn gh-btn-primary"
type="button"
{{on "click" @close}}
{{on "mousedown" (optional this.noop)}}
>
<span>OK</span>
</button>
{{/if}}
{{#if (and this.post.isScheduled this.post.emailOnly)}}
<button
class="gh-btn gh-btn-primary"
type="button"
{{on "click" @close}}
{{on "mousedown" (optional this.noop)}}
>
<span>OK</span>
</button>
{{/if}}
{{!-- {{#if this.post.emailOnly}}
{{#unless this.post.isScheduled}}
<button
class="gh-btn"
@ -139,6 +178,6 @@
>
<span>OK</span>
</button>
{{/if}}
{{/if}} --}}
</footer>
</div>