Browse Source

fix issue

tags/v1.22.4.1^2
zhoupzh 3 years ago
parent
commit
8679849c3d
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      options/locale/locale_en-US.ini
  2. +1
    -1
      options/locale/locale_zh-CN.ini
  3. +1
    -1
      web_src/js/index.js

+ 1
- 1
options/locale/locale_en-US.ini View File

@@ -2837,7 +2837,7 @@ upload_complete = Uploading complete
failed = Upload Failed
enable_minio_support = Enable minio support to use the dataset service
max_file_tooltips= Upload a maximum of ? files at a time, each file does not exceed ? MB.
max_size-tooltips= You can only upload a maximum of ? files at a time. The upload limit has been reached, please do not add more files.
max_size_tooltips= You can only upload a maximum of ? files at a time. The upload limit has been reached, please do not add more files.

[notification]
notifications = Notifications


+ 1
- 1
options/locale/locale_zh-CN.ini View File

@@ -2843,7 +2843,7 @@ upload_complete=上传完成
failed=上传失败
enable_minio_support=启用minio支持以使用数据集服务
max_file_tooltips=单次最多上传?个文件,每个文件不超过? MB。
max_size-tooltips=一次最多只能上传?个文件, 上传已达到上限,请勿再添加文件。
max_size_tooltips=一次最多只能上传?个文件, 上传已达到上限,请勿再添加文件。

[notification]
notifications=通知


+ 1
- 1
web_src/js/index.js View File

@@ -2803,7 +2803,7 @@ $(document).ready(async () => {
}
});
this.on('addedfile',(file)=>{
if(file.size/(1000*1000)>3){
if(file.size/(1000*1000)>$dropzone.data('max-size')){
this.removeFile(file)
$('.maxfilesize.ui.red.message').text(maxFileTooltips)
$('.maxfilesize.ui.red.message').css('display','block')


Loading…
Cancel
Save