mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 11:56:53 +08:00
Fixed the model-modal titles not being clearly distinguished between "Add" and "Setup" (#17634)
This commit is contained in:
@@ -270,8 +270,7 @@ const ModelModal: FC<ModelModalProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const renderTitlePrefix = () => {
|
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}`
|
return `${prefix} ${provider.label[language] || provider.label.en_US}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user