@@ -99,7 +99,7 @@ func NewFuncMap() []template.FuncMap { | |||||
return setting.UI.Reactions | return setting.UI.Reactions | ||||
}, | }, | ||||
"DebugAttachSize": func() int { | "DebugAttachSize": func() int { | ||||
return setting.DebugAttachSize * 1024 * 1024 * 1024 | |||||
return setting.DebugAttachSize * 1000 * 1000 * 1000 | |||||
}, | }, | ||||
"AvatarLink": models.AvatarLink, | "AvatarLink": models.AvatarLink, | ||||
"Safe": Safe, | "Safe": Safe, | ||||
@@ -180,7 +180,7 @@ | |||||
class="unzip-failed" | class="unzip-failed" | ||||
v-if="data.Size > exceedSize" | v-if="data.Size > exceedSize" | ||||
> | > | ||||
{{ i18n.dataset_exceeds_failed }} | |||||
{{ i18n.dataset_exceeds_failed }}{{exceedSize/(1000*1000*1000)}}G | |||||
</span> | </span> | ||||
</span> | </span> | ||||
</span> | </span> | ||||
@@ -1002,7 +1002,6 @@ export default { | |||||
this.type = $(".cloudbrain-type").data("cloudbrain-type"); | this.type = $(".cloudbrain-type").data("cloudbrain-type"); | ||||
this.repoLink = $(".cloudbrain-type").data("repo-link"); | this.repoLink = $(".cloudbrain-type").data("repo-link"); | ||||
this.exceedSize = $(".cloudbrain-type").data("exceed-size"); | this.exceedSize = $(".cloudbrain-type").data("exceed-size"); | ||||
console.log("this.exceedSize",this.exceedSize) | |||||
if ($(".cloudbrain-type").data("dataset-uuid")) { | if ($(".cloudbrain-type").data("dataset-uuid")) { | ||||
this.hasSelectDatasetList = $(".cloudbrain-type") | this.hasSelectDatasetList = $(".cloudbrain-type") | ||||
.data("dataset-uuid") | .data("dataset-uuid") | ||||
@@ -74,7 +74,7 @@ export const i18nVue = { | |||||
dataset_search_placeholder: "搜数据集名称/描述...", | dataset_search_placeholder: "搜数据集名称/描述...", | ||||
dataset_unziping: "正在解压缩", | dataset_unziping: "正在解压缩", | ||||
dataset_unzip_failed: "解压失败", | dataset_unzip_failed: "解压失败", | ||||
dataset_exceeds_failed: "数据集大小超过20G", | |||||
dataset_exceeds_failed: "数据集大小超过", | |||||
dataset_my_upload: "我上传的", | dataset_my_upload: "我上传的", | ||||
dataset_current_repo: "本项目", | dataset_current_repo: "本项目", | ||||
dataset_public: "公开数据集", | dataset_public: "公开数据集", | ||||
@@ -196,7 +196,7 @@ export const i18nVue = { | |||||
dataset_search_placeholder: "Search dataset name/description ...", | dataset_search_placeholder: "Search dataset name/description ...", | ||||
dataset_unziping: "Decompressing", | dataset_unziping: "Decompressing", | ||||
dataset_unzip_failed: "Decompression failed", | 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_my_upload: "Upload by me", | ||||
dataset_current_repo: "Current Repository", | dataset_current_repo: "Current Repository", | ||||
dataset_public: "Public dataset", | dataset_public: "Public dataset", | ||||