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:
parent
7675b27924
commit
7ca10a6c61
1 changed files with 42 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue