diff --git a/gui/src/components/loaders/ProgressBar.tsx b/gui/src/components/loaders/ProgressBar.tsx index 22cf77a5f..d347999b7 100644 --- a/gui/src/components/loaders/ProgressBar.tsx +++ b/gui/src/components/loaders/ProgressBar.tsx @@ -1,15 +1,16 @@ +import { ExclamationCircleIcon } from "@heroicons/react/24/outline"; import ReactDOM from "react-dom"; import { useDispatch } from "react-redux"; import { useNavigate } from "react-router-dom"; import styled from "styled-components"; import { StyledTooltip, lightGray, vscForeground } from ".."; +import AddModelForm from "../../forms/AddModelForm"; import { setDialogMessage, setShowDialog, } from "../../redux/slices/uiStateSlice"; import { getFontSize } from "../../util"; import { FREE_TRIAL_LIMIT_REQUESTS } from "../../util/freeTrial"; -import AddModelForm from "../../forms/AddModelForm"; const ProgressBarWrapper = styled.div` width: 100px; @@ -58,6 +59,27 @@ const ProgressBar = ({ completed, total }: ProgressBarProps) => { const tooltipPortalDiv = document.getElementById("tooltip-portal-div"); + if (completed > total) { + return ( + <> +