-
- {
- fileList.map((file) => {
- const isSelected = selectedFileList.includes(file.key)
- return (
- - { console.log(file) }}
- onOpen={(file) => { console.log(file) }}
- />
- )
- })
- }
-
+
+ {
+ isEmptyFolder && (
+
+ )
+ }
+ {
+ isSearchResultEmpty && (
+
+ )
+ }
+ {fileList.length > 0 && (
+
+ {
+ fileList.map((file) => {
+ const isSelected = selectedFileList.includes(file.key)
+ return (
+ - { console.log(file) }}
+ onOpen={(file) => { console.log(file) }}
+ disabled
+ />
+ )
+ })
+ }
+
+ )}
)
}
diff --git a/web/i18n/en-US/dataset-pipeline.ts b/web/i18n/en-US/dataset-pipeline.ts
index c01af0a625..5a55bdeec1 100644
--- a/web/i18n/en-US/dataset-pipeline.ts
+++ b/web/i18n/en-US/dataset-pipeline.ts
@@ -115,11 +115,12 @@ const translation = {
breadcrumbs: {
allBuckets: 'All Cloud Storage Buckets',
searchResult: 'Find {{searchResultsLength}} items in "{{folderName}}" folder',
- noSearchResult: 'No items were found',
- resetKeywords: 'Reset keywords',
searchPlaceholder: 'Search files...',
},
notSupportedFileType: 'This file type is not supported',
+ emptyFolder: 'This folder is empty',
+ emptySearchResult: 'No items were found',
+ resetKeywords: 'Reset keywords',
},
}
diff --git a/web/i18n/zh-Hans/dataset-pipeline.ts b/web/i18n/zh-Hans/dataset-pipeline.ts
index 682ea34940..053780d222 100644
--- a/web/i18n/zh-Hans/dataset-pipeline.ts
+++ b/web/i18n/zh-Hans/dataset-pipeline.ts
@@ -115,11 +115,12 @@ const translation = {
breadcrumbs: {
allBuckets: '所有云存储桶',
searchResult: '在 "{{folderName}}" 文件夹中找到 {{searchResultsLength}} 个项目',
- noSearchResult: '未找到项目',
- resetKeywords: '重置关键词',
searchPlaceholder: '搜索文件...',
},
notSupportedFileType: '不支持此文件类型',
+ emptyFolder: '此文件夹为空',
+ emptySearchResult: '未找到任何项目',
+ resetKeywords: '重置关键词',
},
}