mirror of https://github.com/langgenius/dify.git
Merge branch 'feat/enchance-warn-user-time-when-need-upgrade-plan' into deploy/dev
This commit is contained in:
commit
016663bf44
|
|
@ -328,7 +328,6 @@ const StepOne = ({
|
|||
crawlOptions={crawlOptions}
|
||||
onCrawlOptionsChange={onCrawlOptionsChange}
|
||||
authedDataSourceList={authedDataSourceList}
|
||||
supportBatchUpload={supportBatchUpload}
|
||||
/>
|
||||
</div>
|
||||
{isShowVectorSpaceFull && (
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ const UpgradeCard: FC = () => {
|
|||
<UpgradeBtn
|
||||
size='custom'
|
||||
isShort
|
||||
className='!h-8 !rounded-lg px-2'
|
||||
className='ml-3 !h-8 !rounded-lg px-2'
|
||||
labelKey='billing.triggerLimitModal.upgrade'
|
||||
loc='upload-multiple-files'
|
||||
onClick={handleUpgrade}
|
||||
|
|
|
|||
|
|
@ -421,11 +421,12 @@ const CreateFormPipeline = () => {
|
|||
}, [PagesMapAndSelectedPagesId, currentWorkspace?.pages, dataSourceStore, datasourceType])
|
||||
|
||||
const clearDataSourceData = useCallback((dataSource: Datasource) => {
|
||||
if (dataSource.nodeData.provider_type === DatasourceType.onlineDocument)
|
||||
const providerType = dataSource.nodeData.provider_type
|
||||
if (providerType === DatasourceType.onlineDocument)
|
||||
clearOnlineDocumentData()
|
||||
else if (dataSource.nodeData.provider_type === DatasourceType.websiteCrawl)
|
||||
else if (providerType === DatasourceType.websiteCrawl)
|
||||
clearWebsiteCrawlData()
|
||||
else if (dataSource.nodeData.provider_type === DatasourceType.onlineDrive)
|
||||
else if (providerType === DatasourceType.onlineDrive)
|
||||
clearOnlineDriveData()
|
||||
}, [clearOnlineDocumentData, clearOnlineDriveData, clearWebsiteCrawlData])
|
||||
|
||||
|
|
@ -512,7 +513,7 @@ const CreateFormPipeline = () => {
|
|||
tip={tip}
|
||||
/>
|
||||
{
|
||||
!supportBatchUpload && localFileList.length > 0 && (
|
||||
!supportBatchUpload && datasourceType === DatasourceType.localFile && localFileList.length > 0 && (
|
||||
<>
|
||||
<Divider type='horizontal' className='my-4 h-px bg-divider-subtle' />
|
||||
<UpgradeCard />
|
||||
|
|
|
|||
Loading…
Reference in New Issue