From fef8e5905070c00e676c4fbecf8e3c5973c409fd Mon Sep 17 00:00:00 2001 From: Sanne de Vries Date: Fri, 13 May 2022 10:26:56 +0100 Subject: [PATCH] Formatted post and member counts in newsletter settings and publishing flow No ref --- .../components/editor-labs/modals/publish-flow/options.hbs | 2 +- .../editor-labs/publish-options/email-recipients.hbs | 2 +- ghost/admin/app/components/gh-members-recipient-select.hbs | 4 ++-- .../components/settings/newsletters/newsletter-management.hbs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ghost/admin/app/components/editor-labs/modals/publish-flow/options.hbs b/ghost/admin/app/components/editor-labs/modals/publish-flow/options.hbs index 864bc14b3d..2ed6f49b51 100644 --- a/ghost/admin/app/components/editor-labs/modals/publish-flow/options.hbs +++ b/ghost/admin/app/components/editor-labs/modals/publish-flow/options.hbs @@ -45,7 +45,7 @@ {{if (eq @recipientType "all") "All"}} {{/if}} - {{countFetcher.count}} + {{format-number countFetcher.count}} {{!-- @recipientType = none/free/paid/all/specific --}} {{if (not-eq @recipientType "all") @recipientType}} diff --git a/ghost/admin/app/components/editor-labs/publish-options/email-recipients.hbs b/ghost/admin/app/components/editor-labs/publish-options/email-recipients.hbs index 68989404a0..288f956415 100644 --- a/ghost/admin/app/components/editor-labs/publish-options/email-recipients.hbs +++ b/ghost/admin/app/components/editor-labs/publish-options/email-recipients.hbs @@ -19,7 +19,7 @@ @dropdownClass="gh-publish-newsletter-dropdown" as |newsletter| > - {{newsletter.name}}{{newsletter.count.members}} + {{newsletter.name}}{{format-number newsletter.count.members}} {{/if}} diff --git a/ghost/admin/app/components/gh-members-recipient-select.hbs b/ghost/admin/app/components/gh-members-recipient-select.hbs index 2162baa877..89ef58af82 100644 --- a/ghost/admin/app/components/gh-members-recipient-select.hbs +++ b/ghost/admin/app/components/gh-members-recipient-select.hbs @@ -18,7 +18,7 @@ Free {{#let (members-count-fetcher query=(hash filter=(concat @newsletter.recipientFilter "+status:free"))) as |countFetcher|}} {{#if (not (is-empty countFetcher.count))}} - ({{countFetcher.count}}) + ({{format-number countFetcher.count}}) {{/if}} {{/let}}

@@ -46,7 +46,7 @@ Paid {{#let (members-count-fetcher query=(hash filter=(concat @newsletter.recipientFilter "+status:-free"))) as |countFetcher|}} {{#if (not (is-empty countFetcher.count))}} - ({{countFetcher.count}}) + ({{format-number countFetcher.count}}) {{/if}} {{/let}}

diff --git a/ghost/admin/app/components/settings/newsletters/newsletter-management.hbs b/ghost/admin/app/components/settings/newsletters/newsletter-management.hbs index c129c4dc90..fba984e07f 100644 --- a/ghost/admin/app/components/settings/newsletters/newsletter-management.hbs +++ b/ghost/admin/app/components/settings/newsletters/newsletter-management.hbs @@ -76,11 +76,11 @@ {{#if (feature "multipleNewslettersUI")}}
-

{{newsletter.count.members}}

+

{{format-number newsletter.count.members}}

Subscribers

-

{{newsletter.count.posts}}

+

{{format-number newsletter.count.posts}}

Posts sent