From 7317dea5614aecb315445d93aa0ba9d2b483b380 Mon Sep 17 00:00:00 2001 From: FinnIckler Date: Wed, 4 Sep 2024 11:24:08 +0200 Subject: [PATCH] Bring back waiting list (#9901) * bring back waiting list code * correctly sort users * remove span * remove unnecessary cell in footer --- .../RegistrationActions.jsx | 26 ++--- .../RegistrationAdministrationList.jsx | 97 +++++++++---------- .../RegistrationAdministrationTableFooter.jsx | 1 - .../RegistrationEdit/RegistrationEditor.jsx | 18 ++-- 4 files changed, 70 insertions(+), 72 deletions(-) diff --git a/app/webpacker/components/RegistrationsV2/RegistrationAdministration/RegistrationActions.jsx b/app/webpacker/components/RegistrationsV2/RegistrationAdministration/RegistrationActions.jsx index ab2d24831f..fa4ee6828f 100644 --- a/app/webpacker/components/RegistrationsV2/RegistrationAdministration/RegistrationActions.jsx +++ b/app/webpacker/components/RegistrationsV2/RegistrationAdministration/RegistrationActions.jsx @@ -45,7 +45,7 @@ export default function RegistrationActions({ const anyRejectable = pending.length < selectedCount; const anyApprovable = accepted.length < selectedCount; const anyCancellable = cancelled.length < selectedCount; - // const anyWaitlistable = waiting.length < selectedCount; + const anyWaitlistable = waiting.length < selectedCount; const selectedEmails = [...pending, ...accepted, ...cancelled, ...waiting] .map((userId) => userEmailMap[userId]) @@ -139,18 +139,18 @@ export default function RegistrationActions({ )} - {/* {anyWaitlistable && ( */} - {/* */} - {/* )} */} + {anyWaitlistable && ( + + )} {anyCancellable && (