fix: do not show draft model downloading progress

This commit is contained in:
jialin
2025-11-04 17:19:20 +08:00
parent e5733a7f6e
commit 4ca6a221e4
2 changed files with 8 additions and 9 deletions
@@ -156,7 +156,7 @@ const AddWorkerStep: React.FC<AddModalProps> = ({
{intl.formatMessage({ id: 'clusters.create.addCommand.tips' })} {intl.formatMessage({ id: 'clusters.create.addCommand.tips' })}
</div> </div>
<AlertInfoBlock <AlertInfoBlock
style={{ marginBottom: 16 }} style={{ marginBottom: 8 }}
type="warning" type="warning"
icon={<ExclamationCircleFilled />} icon={<ExclamationCircleFilled />}
message={ message={
@@ -210,7 +210,10 @@ const RenderWorkerDownloading = (props: {
!severList.length || !severList.length ||
backend === backendOptionsMap.llamaBox; backend === backendOptionsMap.llamaBox;
if (isWorkerNotDownloading) { const isDragftModelNotDownloading =
instanceData.draft_model_download_progress <= 0;
if (isWorkerNotDownloading && isDragftModelNotDownloading) {
return null; return null;
} }
return ( return (
@@ -240,7 +243,9 @@ const RenderWorkerDownloading = (props: {
strokeColor="var(--ant-color-success)" strokeColor="var(--ant-color-success)"
percent={ percent={
_.find(severList, (item: any) => item.download_progress < 100) _.find(severList, (item: any) => item.download_progress < 100)
?.download_progress || 0 ?.download_progress ||
instanceData.draft_model_download_progress ||
0
} }
/> />
</Tooltip> </Tooltip>
@@ -307,12 +312,6 @@ const childActionList = [
], ],
icon: <IconFont type="icon-logs" /> icon: <IconFont type="icon-logs" />
}, },
// {
// label: 'Terminal',
// locale: false,
// key: 'terminal',
// icon: <CodeOutlined />
// },
{ {
label: 'common.button.downloadLog', label: 'common.button.downloadLog',
key: 'download', key: 'download',