Browse Source

fix issue

pull/3434/head
zhoupzh 2 years ago
parent
commit
8de95dcacb
3 changed files with 4 additions and 5 deletions
  1. +1
    -1
      modules/templates/helper.go
  2. +1
    -2
      web_src/js/components/dataset/selectDataset.vue
  3. +2
    -2
      web_src/js/features/i18nVue.js

+ 1
- 1
modules/templates/helper.go View File

@@ -99,7 +99,7 @@ func NewFuncMap() []template.FuncMap {
return setting.UI.Reactions
},
"DebugAttachSize": func() int {
return setting.DebugAttachSize * 1024 * 1024 * 1024
return setting.DebugAttachSize * 1000 * 1000 * 1000
},
"AvatarLink": models.AvatarLink,
"Safe": Safe,


+ 1
- 2
web_src/js/components/dataset/selectDataset.vue View File

@@ -180,7 +180,7 @@
class="unzip-failed"
v-if="data.Size > exceedSize"
>
{{ i18n.dataset_exceeds_failed }}
{{ i18n.dataset_exceeds_failed }}{{exceedSize/(1000*1000*1000)}}G
</span>
</span>
</span>
@@ -1002,7 +1002,6 @@ export default {
this.type = $(".cloudbrain-type").data("cloudbrain-type");
this.repoLink = $(".cloudbrain-type").data("repo-link");
this.exceedSize = $(".cloudbrain-type").data("exceed-size");
console.log("this.exceedSize",this.exceedSize)
if ($(".cloudbrain-type").data("dataset-uuid")) {
this.hasSelectDatasetList = $(".cloudbrain-type")
.data("dataset-uuid")


+ 2
- 2
web_src/js/features/i18nVue.js View File

@@ -74,7 +74,7 @@ export const i18nVue = {
dataset_search_placeholder: "搜数据集名称/描述...",
dataset_unziping: "正在解压缩",
dataset_unzip_failed: "解压失败",
dataset_exceeds_failed: "数据集大小超过20G",
dataset_exceeds_failed: "数据集大小超过",
dataset_my_upload: "我上传的",
dataset_current_repo: "本项目",
dataset_public: "公开数据集",
@@ -196,7 +196,7 @@ export const i18nVue = {
dataset_search_placeholder: "Search dataset name/description ...",
dataset_unziping: "Decompressing",
dataset_unzip_failed: "Decompression failed",
dataset_exceeds_failed: "Dataset size exceeds 20G",
dataset_exceeds_failed: "Dataset size exceeds ",
dataset_my_upload: "Upload by me",
dataset_current_repo: "Current Repository",
dataset_public: "Public dataset",


Loading…
Cancel
Save