fix: Fix the unit when upload file

Fix the unit to `GiB` when upload file in storage container

Closes-Bug: #1990125
Change-Id: I0f1bf1ec5979c1481033af3e72efcf586a5105dc
(cherry picked from commit c7556cfda7)
This commit is contained in:
xusongfu
2022-09-19 16:13:22 +08:00
parent 714370232e
commit 03c0414972
4 changed files with 4 additions and 4 deletions

View File

@@ -1775,7 +1775,7 @@
"Please select {name} first": "Please select {name} first",
"Please set CPU && Ram first.": "Please set CPU && Ram first.",
"Please set MUNA": "Please set MUNA",
"Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.": "Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.",
"Please upload files smaller than { size }GiB on the page. It is recommended to upload files over { size }GiB using API.": "Please upload files smaller than { size }GiB on the page. It is recommended to upload files over { size }GiB using API.",
"Poland": "Poland",
"Policy": "Policy",
"Policy Name": "Policy Name",

View File

@@ -1775,7 +1775,7 @@
"Please select {name} first": "请先选择{name}",
"Please set CPU && Ram first.": "请先设置CPU、内存。",
"Please set MUNA": "请设置NUMA节点",
"Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.": "页面请上传小于{ size }G的文件超过{ size }G的文件建议使用API上传。",
"Please upload files smaller than { size }GiB on the page. It is recommended to upload files over { size }GiB using API.": "页面请上传小于{ size }GiB的文件,超过{ size }GiB的文件建议使用API上传。",
"Poland": "波兰",
"Policy": "策略",
"Policy Name": "策略名称",

View File

@@ -72,7 +72,7 @@ export class Edit extends ModalAction {
}
return Promise.reject(
t(
'Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.',
'Please upload files smaller than { size }GiB on the page. It is recommended to upload files over { size }GiB using API.',
{ size: this.maxSize }
)
);

View File

@@ -64,7 +64,7 @@ export class UploadFile extends ModalAction {
}
return Promise.reject(
t(
'Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.',
'Please upload files smaller than { size }GiB on the page. It is recommended to upload files over { size }GiB using API.',
{ size: this.maxSize }
)
);