diff --git a/src/components/Embeds/AttachmentEmbed.tsx b/src/components/Embeds/AttachmentEmbed.tsx index 347b8f6..453566c 100644 --- a/src/components/Embeds/AttachmentEmbed.tsx +++ b/src/components/Embeds/AttachmentEmbed.tsx @@ -266,7 +266,9 @@ export const AttachmentCard = ({ {resourceData?.fileName && ( <> - {resourceDetails?.status?.status === 'DOWNLOADED' ? 'BUILDING' : resourceDetails?.status?.status} + {resourceData?.fileName} )} @@ -286,6 +288,8 @@ export const AttachmentCard = ({ }}> + {resourceDetails?.status?.status === 'DOWNLOADED' ? 'BUILDING' : resourceDetails?.status?.status} + {!resourceDetails && ( <> @@ -319,9 +323,7 @@ export const AttachmentCard = ({ - {resourceDetails?.status?.status} + diff --git a/src/components/Group/Group.tsx b/src/components/Group/Group.tsx index 747011a..9499d71 100644 --- a/src/components/Group/Group.tsx +++ b/src/components/Group/Group.tsx @@ -2730,6 +2730,8 @@ export const Group = ({ setIsLoadingGroup(false)} + info={{ message: isLoadingGroupMessage || "Setting up group... please wait.", @@ -2738,6 +2740,7 @@ export const Group = ({ setIsLoadingGroup(false)} info={{ message: "Setting up groups... please wait.", }} diff --git a/src/components/Snackbar/LoadingSnackbar.tsx b/src/components/Snackbar/LoadingSnackbar.tsx index c1e43a9..3117597 100644 --- a/src/components/Snackbar/LoadingSnackbar.tsx +++ b/src/components/Snackbar/LoadingSnackbar.tsx @@ -3,12 +3,29 @@ import Button from '@mui/material/Button'; import Snackbar, { SnackbarCloseReason } from '@mui/material/Snackbar'; import Alert from '@mui/material/Alert'; -export const LoadingSnackbar = ({open, info}) => { +export const LoadingSnackbar = ({open, info, close, setInfo}) => { + const handleClose = ( + event?: React.SyntheticEvent | Event, + reason?: SnackbarCloseReason, + ) => { + if (reason === 'clickaway') { + return; + } + if(close){ + close(); + + } + if(setInfo){ + setInfo(null) + } + + }; return (
- +