diff --git a/web/app/_components/ProgressBar/index.tsx b/web/app/_components/ProgressBar/index.tsx index 8981f671a..66f1e1f72 100644 --- a/web/app/_components/ProgressBar/index.tsx +++ b/web/app/_components/ProgressBar/index.tsx @@ -6,7 +6,7 @@ type Props = { } const ProgressBar: React.FC = ({ used, total }) => ( -
+
Updating diff --git a/web/containers/BottomBar/index.tsx b/web/containers/BottomBar/index.tsx index 3b927c44e..19e288cc2 100644 --- a/web/containers/BottomBar/index.tsx +++ b/web/containers/BottomBar/index.tsx @@ -6,6 +6,8 @@ import { modelDownloadStateAtom } from '@helpers/atoms/DownloadState.atom' import { formatDownloadPercentage } from '@utils/converter' import { activeAssistantModelAtom, stateModel } from '@helpers/atoms/Model.atom' import useGetAppVersion from '@hooks/useGetAppVersion' +import ProgressBar from '@/_components/ProgressBar' +import { appDownloadProgress } from '@helpers/JotaiWrapper' const BottomBar = () => { const activeModel = useAtomValue(activeAssistantModelAtom) @@ -13,6 +15,7 @@ const BottomBar = () => { const { ram, cpu } = useGetSystemResources() const modelDownloadStates = useAtomValue(modelDownloadStateAtom) const appVersion = useGetAppVersion() + const progress = useAtomValue(appDownloadProgress) const downloadStates: DownloadState[] = [] for (const [, value] of Object.entries(modelDownloadStates)) { @@ -21,7 +24,22 @@ const BottomBar = () => { return (
-
+
+
+ {progress && progress >= 0 ? ( + + ) : null} + {downloadStates.length > 0 && ( + + )} +
+ {stateModelStartStop.state === 'start' && stateModelStartStop.loading && ( {
-

Jan v{appVersion?.version ?? ''}

+

+ Jan v{appVersion?.version ?? ''} +

)