From d2456947bdc54549f9adb1105b0645093e080bc8 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 10 Aug 2020 12:27:16 +0100 Subject: [PATCH] Added explicit count of paid members to email confirmation modal closes https://github.com/TryGhost/Ghost/issues/12112 - perform a paid members list query with a limit of 1 when the modal is displayed if the post is set to members only, then use the pagination meta data to get a total number of members - display a spinner and disable the confirm button whilst the count query is in progress - does not display any counts for users with the Editor role as they do not have permission to list members --- app/components/modal-confirm-email-send.hbs | 29 ++++++++++++++++----- app/components/modal-confirm-email-send.js | 26 +++++++++--------- 2 files changed, 35 insertions(+), 20 deletions(-) diff --git a/app/components/modal-confirm-email-send.hbs b/app/components/modal-confirm-email-send.hbs index 3e45c44ae..59fecf3ef 100644 --- a/app/components/modal-confirm-email-send.hbs +++ b/app/components/modal-confirm-email-send.hbs @@ -4,12 +4,26 @@ -