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
|
||||
icon={<ClearOutlined />}
|
||||
size="middle"
|
||||
disabled={loading}
|
||||
onClick={handleClearDocuments}
|
||||
>
|
||||
{intl.formatMessage({ id: 'common.button.clear' })}
|
||||
|
||||
@@ -541,6 +541,7 @@ const GroundReranker: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
<Button
|
||||
icon={<ClearOutlined />}
|
||||
size="middle"
|
||||
disabled={loading}
|
||||
onClick={handleClearDocuments}
|
||||
>
|
||||
{intl.formatMessage({ id: 'common.button.clear' })}
|
||||
|
||||
@@ -449,10 +449,6 @@ const Workers: React.FC = () => {
|
||||
record?.status?.memory?.used,
|
||||
record?.status?.memory?.total
|
||||
)}
|
||||
successPercent={formateUtilazation(
|
||||
record?.status?.memory?.allocated,
|
||||
record?.status?.memory?.total
|
||||
)}
|
||||
label={renderProgressLabels(record?.status?.memory)}
|
||||
></ProgressBar>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user