From 6c960704b98babce78d95f59e94ec99924fb4319 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 18 May 2022 13:58:19 +0100 Subject: [PATCH] Hid total member counts in newsletter selection for authors/editors no issue - authors/editors don't yet have a way to fetch member counts for specific filters so the final member count is hidden in the publish options text, however we were still showing the total subscribed members for each newsletter in the dropdown which could lead to incorrect assumptions for how many members would receive the newsletter --- .../editor-labs/publish-options/email-recipients.hbs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 288f956415..d1f21aed30 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 @@ -6,7 +6,7 @@ @renderInPlace={{false}} @dropdownClass="gh-publish-newsletter-dropdown" /> - + {{#if (gt @publishOptions.newsletters.length 1)}}
@@ -19,7 +19,11 @@ @dropdownClass="gh-publish-newsletter-dropdown" as |newsletter| > - {{newsletter.name}}{{format-number newsletter.count.members}} + {{newsletter.name}} + {{!-- TODO: remove conditional when author/editor can fetch member counts --}} + {{#if @publishOptions.user.isAdmin}} + {{format-number newsletter.count.members}} + {{/if}}
{{/if}}