Skip to content

Commit

Permalink
show status directly if not unloaded/loaded/loading (#553)
Browse files Browse the repository at this point in the history
Signed-off-by: shanghaikid <jiangruiyi@gmail.com>
  • Loading branch information
shanghaikid authored Jun 21, 2024
1 parent a8d2681 commit 35f93ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/src/pages/databases/collections/StatusAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import StatusIcon, { LoadingType } from '@/components/status/StatusIcon';
import Icons from '@/components/icons/Icons';
import CustomToolTip from '@/components/customToolTip/CustomToolTip';
import CustomButton from '@/components/customButton/CustomButton';
import { useNavigate } from 'react-router-dom';
import LoadCollectionDialog from '@/pages/dialogs/LoadCollectionDialog';
import ReleaseCollectionDialog from '@/pages/dialogs/ReleaseCollectionDialog';

Expand Down Expand Up @@ -79,7 +78,6 @@ const useStyles = makeStyles((theme: Theme) =>

const StatusAction: FC<StatusActionType> = props => {
const theme = useTheme();
const navigate = useNavigate();
const { setDialog } = useContext(rootContext);

const classes = useStyles({ color: theme.palette.primary.main });
Expand Down Expand Up @@ -128,7 +126,7 @@ const StatusAction: FC<StatusActionType> = props => {

default:
return {
label: statusTrans.error,
label: status,
icon: <span></span>,
tooltip: '',
deleteIcon: <ReleaseIcon />,
Expand Down

0 comments on commit 35f93ca

Please sign in to comment.