fix: gpus link
This commit is contained in:
@@ -91,6 +91,18 @@ const BackendFields: React.FC = () => {
|
||||
return option.data.title;
|
||||
};
|
||||
|
||||
const versionOptionRender = (option: any) => {
|
||||
const { data } = option;
|
||||
return data.is_deprecated ? (
|
||||
<span>
|
||||
{data.title}
|
||||
<span className="text-tertiary m-l-4">[Deprecated]</span>
|
||||
</span>
|
||||
) : (
|
||||
<span>{data.title}</span>
|
||||
);
|
||||
};
|
||||
|
||||
const labelRender = (option: any) => {
|
||||
return option.title;
|
||||
};
|
||||
@@ -121,7 +133,7 @@ const BackendFields: React.FC = () => {
|
||||
<SealSelect
|
||||
allowClear
|
||||
options={backendVersions}
|
||||
optionRender={optionRender}
|
||||
optionRender={versionOptionRender}
|
||||
labelRender={labelRender}
|
||||
placeholder={intl.formatMessage({
|
||||
id: 'models.form.backendVersion.holder'
|
||||
|
||||
@@ -47,6 +47,7 @@ const CustomBackend: React.FC = () => {
|
||||
<SealInput.Input
|
||||
required
|
||||
allowClear
|
||||
onBlur={handleImageNameOnBlur}
|
||||
label={intl.formatMessage({ id: 'backend.imageName' })}
|
||||
></SealInput.Input>
|
||||
</Form.Item>
|
||||
@@ -65,6 +66,7 @@ const CustomBackend: React.FC = () => {
|
||||
scaleSize={false}
|
||||
alwaysFocus={true}
|
||||
autoSize={{ minRows: 2, maxRows: 4 }}
|
||||
onBlur={handleRunCommandOnBlur}
|
||||
label={intl.formatMessage({ id: 'backend.runCommand' })}
|
||||
description={intl.formatMessage({
|
||||
id: 'backend.form.defaultExecuteCommand.tips'
|
||||
|
||||
Reference in New Issue
Block a user