From 2e6b219030d06bce349e0f562983e94d0a8ac2ee Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 12 May 2022 13:19:12 +0100 Subject: [PATCH] Fixed recipient select becoming disabled when all filters are turned off no issue - `publishOptions.willEmail` doesn't work for the conditional because it will be false when no email will be sent, which is the case when a recipient filter is the equivalent of "none" - switched to being conditional on the publish type and added a separate "Not sent to any members" conditional for `recipientFilter` being blank so we're not showing an incorrect count of members --- .../modals/publish-flow/options.hbs | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 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 4681fe9b11..864bc14b3d 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 @@ -31,7 +31,7 @@ {{#unless @publishOptions.emailUnavailable}}
- {{#if @publishOptions.willEmail}} + {{#if (not-eq @publishOptions.publishType "publish")}}