fix: can be cleared during loading in embedding and rerank
This commit is contained in:
@@ -517,6 +517,7 @@ const GroundEmbedding: React.FC<MessageProps> = forwardRef((props, ref) => {
|
|||||||
<Button
|
<Button
|
||||||
icon={<ClearOutlined />}
|
icon={<ClearOutlined />}
|
||||||
size="middle"
|
size="middle"
|
||||||
|
disabled={loading}
|
||||||
onClick={handleClearDocuments}
|
onClick={handleClearDocuments}
|
||||||
>
|
>
|
||||||
{intl.formatMessage({ id: 'common.button.clear' })}
|
{intl.formatMessage({ id: 'common.button.clear' })}
|
||||||
|
|||||||
@@ -541,6 +541,7 @@ const GroundReranker: React.FC<MessageProps> = forwardRef((props, ref) => {
|
|||||||
<Button
|
<Button
|
||||||
icon={<ClearOutlined />}
|
icon={<ClearOutlined />}
|
||||||
size="middle"
|
size="middle"
|
||||||
|
disabled={loading}
|
||||||
onClick={handleClearDocuments}
|
onClick={handleClearDocuments}
|
||||||
>
|
>
|
||||||
{intl.formatMessage({ id: 'common.button.clear' })}
|
{intl.formatMessage({ id: 'common.button.clear' })}
|
||||||
|
|||||||
@@ -449,10 +449,6 @@ const Workers: React.FC = () => {
|
|||||||
record?.status?.memory?.used,
|
record?.status?.memory?.used,
|
||||||
record?.status?.memory?.total
|
record?.status?.memory?.total
|
||||||
)}
|
)}
|
||||||
successPercent={formateUtilazation(
|
|
||||||
record?.status?.memory?.allocated,
|
|
||||||
record?.status?.memory?.total
|
|
||||||
)}
|
|
||||||
label={renderProgressLabels(record?.status?.memory)}
|
label={renderProgressLabels(record?.status?.memory)}
|
||||||
></ProgressBar>
|
></ProgressBar>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user