From b10925dd93ccb479e057fcf6b9be435fa6d7130b Mon Sep 17 00:00:00 2001 From: Mark D'Avella Date: Sat, 23 Nov 2024 17:31:31 -0500 Subject: [PATCH] fix: disable speed-dial when loading (#984) --- .../components/channel_config/SelectedProgrammingActions.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/channel_config/SelectedProgrammingActions.tsx b/web/src/components/channel_config/SelectedProgrammingActions.tsx index a9baa2fc..fa926d38 100644 --- a/web/src/components/channel_config/SelectedProgrammingActions.tsx +++ b/web/src/components/channel_config/SelectedProgrammingActions.tsx @@ -86,7 +86,7 @@ export default function SelectedProgrammingActions({ const handleOpen = () => setOpen(true); const handleClose = () => setOpen(false); const snackbar = useSnackbar(); - const { addSelectedItems } = useAddSelectedItems( + const { addSelectedItems, isLoading } = useAddSelectedItems( onAddSelectedMedia, onAddMediaSuccess, ); @@ -172,6 +172,7 @@ export default function SelectedProgrammingActions({ onClose={handleClose} onOpen={handleOpen} open={open} + FabProps={{ disabled: isLoading || selectAllLoading }} > {selectedMedia.length > 0 && (