fix: do not show draft model downloading progress
This commit is contained in:
@@ -156,7 +156,7 @@ const AddWorkerStep: React.FC<AddModalProps> = ({
|
||||
{intl.formatMessage({ id: 'clusters.create.addCommand.tips' })}
|
||||
</div>
|
||||
<AlertInfoBlock
|
||||
style={{ marginBottom: 16 }}
|
||||
style={{ marginBottom: 8 }}
|
||||
type="warning"
|
||||
icon={<ExclamationCircleFilled />}
|
||||
message={
|
||||
|
||||
@@ -210,7 +210,10 @@ const RenderWorkerDownloading = (props: {
|
||||
!severList.length ||
|
||||
backend === backendOptionsMap.llamaBox;
|
||||
|
||||
if (isWorkerNotDownloading) {
|
||||
const isDragftModelNotDownloading =
|
||||
instanceData.draft_model_download_progress <= 0;
|
||||
|
||||
if (isWorkerNotDownloading && isDragftModelNotDownloading) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
@@ -240,7 +243,9 @@ const RenderWorkerDownloading = (props: {
|
||||
strokeColor="var(--ant-color-success)"
|
||||
percent={
|
||||
_.find(severList, (item: any) => item.download_progress < 100)
|
||||
?.download_progress || 0
|
||||
?.download_progress ||
|
||||
instanceData.draft_model_download_progress ||
|
||||
0
|
||||
}
|
||||
/>
|
||||
</Tooltip>
|
||||
@@ -307,12 +312,6 @@ const childActionList = [
|
||||
],
|
||||
icon: <IconFont type="icon-logs" />
|
||||
},
|
||||
// {
|
||||
// label: 'Terminal',
|
||||
// locale: false,
|
||||
// key: 'terminal',
|
||||
// icon: <CodeOutlined />
|
||||
// },
|
||||
{
|
||||
label: 'common.button.downloadLog',
|
||||
key: 'download',
|
||||
|
||||
Reference in New Issue
Block a user