mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed subscriber count not showing for scheduled email-only posts
No ref
This commit is contained in:
parent
0cddb3ccb9
commit
e09f41716b
2 changed files with 17 additions and 12 deletions
|
@ -40,6 +40,7 @@
|
||||||
{{else if this.isComplete}}
|
{{else if this.isComplete}}
|
||||||
<EditorLabs::Modals::PublishFlow::Complete
|
<EditorLabs::Modals::PublishFlow::Complete
|
||||||
@publishOptions={{@data.publishOptions}}
|
@publishOptions={{@data.publishOptions}}
|
||||||
|
@recipientType={{this.recipientType}}
|
||||||
@postCount={{this.postCount}}
|
@postCount={{this.postCount}}
|
||||||
@close={{@close}}
|
@close={{@close}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -40,21 +40,25 @@
|
||||||
Your post
|
Your post
|
||||||
{{if post.isScheduled "will be" "was"}}
|
{{if post.isScheduled "will be" "was"}}
|
||||||
sent to
|
sent to
|
||||||
{{#if post.isScheduled}}
|
|
||||||
{{#let (members-count-fetcher query=(hash filter=post.fullRecipientFilter)) as |countFetcher|}}
|
{{#let (members-count-fetcher query=(hash filter=post.fullRecipientFilter)) as |countFetcher|}}
|
||||||
{{#if @publishOptions.onlyDefaultNewsletter}}
|
|
||||||
<strong>{{gh-pluralize post.email.emailCount "subscribers"}}</strong>
|
<strong>
|
||||||
{{else}}
|
{{if (eq @recipientType "all") "all"}}
|
||||||
<strong>{{gh-pluralize post.email.emailCount "subscriber"}}</strong> of <strong>{{@publishOptions.post.newsletter.name}}</strong>
|
|
||||||
{{/if}}
|
{{countFetcher.count}}
|
||||||
{{/let}}
|
|
||||||
{{else}}
|
{{!-- @recipientType = none/free/paid/all/specific --}}
|
||||||
|
{{if (not-eq @recipientType "all") @recipientType}}
|
||||||
|
</strong>
|
||||||
|
|
||||||
{{#if @publishOptions.onlyDefaultNewsletter}}
|
{{#if @publishOptions.onlyDefaultNewsletter}}
|
||||||
<strong>{{gh-pluralize post.email.emailCount "subscribers"}}</strong>
|
<strong>{{gh-pluralize countFetcher.count "subscriber" without-count=true}}</strong>
|
||||||
{{else}}
|
{{else}}
|
||||||
<strong>{{gh-pluralize post.email.emailCount "subscriber"}}</strong> of <strong>{{@publishOptions.post.newsletter.name}}</strong>
|
<strong>{{gh-pluralize countFetcher.count "subscriber" without-count=true}}</strong>
|
||||||
|
of <strong>{{@publishOptions.newsletter.name}}</strong>,
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/let}}
|
||||||
|
|
||||||
{{#let (moment-site-tz post.publishedAtUTC) as |publishedAt|}}
|
{{#let (moment-site-tz post.publishedAtUTC) as |publishedAt|}}
|
||||||
on
|
on
|
||||||
|
|
Loading…
Add table
Reference in a new issue