From eee84ab5f7ee7a246a9ffdf599cd6f228c9f6a10 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Fri, 19 Jun 2020 18:14:14 +0100 Subject: [PATCH] Added first pass bulk members delete confirmation and results display no issue - display a confirmation modal when bulk deleting members - hit the `DELETE /members/?all=true` endpoint when confirming - show counts of members deleted/skipped - fix selection reset when leaving edit mode --- .../app/components/modal-delete-members.hbs | 71 ++++++++++++++++--- .../app/components/modal-delete-members.js | 16 ++++- ghost/admin/app/controllers/members.js | 21 ++++-- ghost/admin/app/templates/members.hbs | 18 ++--- ghost/admin/mirage/config/members.js | 23 ++++++ ghost/admin/tests/acceptance/members-test.js | 56 ++++++++++++++- 6 files changed, 179 insertions(+), 26 deletions(-) diff --git a/ghost/admin/app/components/modal-delete-members.hbs b/ghost/admin/app/components/modal-delete-members.hbs index fa81b39b07..3dc7964737 100644 --- a/ghost/admin/app/components/modal-delete-members.hbs +++ b/ghost/admin/app/components/modal-delete-members.hbs @@ -1,16 +1,69 @@ -