mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 04:26:30 +08:00
fix(web): update the tip in the file-uploader component (#27452)
This commit is contained in:
parent
82be305680
commit
417ebd160b
@ -324,7 +324,7 @@ const FileUploader = ({
|
|||||||
<div>{t('datasetCreation.stepOne.uploader.tip', {
|
<div>{t('datasetCreation.stepOne.uploader.tip', {
|
||||||
size: fileUploadConfig.file_size_limit,
|
size: fileUploadConfig.file_size_limit,
|
||||||
supportTypes: supportTypesShowNames,
|
supportTypes: supportTypesShowNames,
|
||||||
batchCount: fileUploadConfig.batch_count_limit,
|
batchCount: notSupportBatchUpload ? 1 : fileUploadConfig.batch_count_limit,
|
||||||
})}</div>
|
})}</div>
|
||||||
{dragging && <div ref={dragRef} className='absolute left-0 top-0 h-full w-full' />}
|
{dragging && <div ref={dragRef} className='absolute left-0 top-0 h-full w-full' />}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -287,7 +287,7 @@ const LocalFile = ({
|
|||||||
<RiUploadCloud2Line className='mr-2 size-5' />
|
<RiUploadCloud2Line className='mr-2 size-5' />
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
{t('datasetCreation.stepOne.uploader.button')}
|
{notSupportBatchUpload ? t('datasetCreation.stepOne.uploader.buttonSingleFile') : t('datasetCreation.stepOne.uploader.button')}
|
||||||
{allowedExtensions.length > 0 && (
|
{allowedExtensions.length > 0 && (
|
||||||
<label className='ml-1 cursor-pointer text-text-accent' onClick={selectHandle}>{t('datasetCreation.stepOne.uploader.browse')}</label>
|
<label className='ml-1 cursor-pointer text-text-accent' onClick={selectHandle}>{t('datasetCreation.stepOne.uploader.browse')}</label>
|
||||||
)}
|
)}
|
||||||
@ -296,7 +296,7 @@ const LocalFile = ({
|
|||||||
<div>{t('datasetCreation.stepOne.uploader.tip', {
|
<div>{t('datasetCreation.stepOne.uploader.tip', {
|
||||||
size: fileUploadConfig.file_size_limit,
|
size: fileUploadConfig.file_size_limit,
|
||||||
supportTypes: supportTypesShowNames,
|
supportTypes: supportTypesShowNames,
|
||||||
batchCount: fileUploadConfig.batch_count_limit,
|
batchCount: notSupportBatchUpload ? 1 : fileUploadConfig.batch_count_limit,
|
||||||
})}</div>
|
})}</div>
|
||||||
{dragging && <div ref={dragRef} className='absolute left-0 top-0 h-full w-full' />}
|
{dragging && <div ref={dragRef} className='absolute left-0 top-0 h-full w-full' />}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user