Fixed the model-modal titles not being clearly distinguished between "Add" and "Setup" (#17634)

pull/13341/head
Lao 1 year ago committed by GitHub
parent cd7ac20d80
commit 106604682a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -270,8 +270,7 @@ const ModelModal: FC<ModelModalProps> = ({
}
const renderTitlePrefix = () => {
const prefix = configurateMethod === ConfigurationMethodEnum.customizableModel ? t('common.operation.add') : t('common.operation.setup')
const prefix = isEditMode ? t('common.operation.setup') : t('common.operation.add')
return `${prefix} ${provider.label[language] || provider.label.en_US}`
}

Loading…
Cancel
Save