fix: fix force shutdown form item in the resize instance form
Fix the force shutdown form item validator in the resize instance form, the force shutdown check form item must be checked Change-Id: If4823c3082680038b74c18d132b00de9ba246e43
This commit is contained in:
parent
6451966842
commit
5a31563316
@ -1040,6 +1040,7 @@
|
||||
"Force Delete Container": "Force Delete Container",
|
||||
"Force Delete Share Instance": "Force Delete Share Instance",
|
||||
"Force release": "Force release",
|
||||
"Force shutdown must be checked!": "Force shutdown must be checked!",
|
||||
"Forced Down": "Forced Down",
|
||||
"Forced Shutdown": "Forced Shutdown",
|
||||
"Forced shutdown may result in data loss or file system damage. You can also take the initiative to shut down and perform operations.": "Forced shutdown may result in data loss or file system damage. You can also take the initiative to shut down and perform operations.",
|
||||
|
@ -1040,6 +1040,7 @@
|
||||
"Force Delete Container": "강제 컨테이너 삭제",
|
||||
"Force Delete Share Instance": "강제 공유 인스턴스 삭제",
|
||||
"Force release": "강제 해제",
|
||||
"Force shutdown must be checked!": "",
|
||||
"Forced Down": "강제 Down",
|
||||
"Forced Shutdown": "강제 Shutdown",
|
||||
"Forced shutdown may result in data loss or file system damage. You can also take the initiative to shut down and perform operations.": "강제 종료 시 데이터가 손실되거나 파일 시스템이 손상될 수 있습니다. 주도적으로 종료하고 작업을 수행할 수도 있습니다.",
|
||||
|
@ -1040,6 +1040,7 @@
|
||||
"Force Delete Container": "强制删除容器",
|
||||
"Force Delete Share Instance": "强制删除共享实例",
|
||||
"Force release": "强制释放",
|
||||
"Force shutdown must be checked!": "必须勾选强制关机!",
|
||||
"Forced Down": "强制关闭",
|
||||
"Forced Shutdown": "强制关机",
|
||||
"Forced shutdown may result in data loss or file system damage. You can also take the initiative to shut down and perform operations.": "强制关机可能会导致数据丢失或文件系统损坏,您也可以主动关机后再进行操作。",
|
||||
|
@ -246,6 +246,14 @@ export class Resize extends ModalAction {
|
||||
type: 'check',
|
||||
content: t('Agree to force shutdown'),
|
||||
required: true,
|
||||
validator: (rule, value) => {
|
||||
if (value !== true) {
|
||||
return Promise.reject(
|
||||
new Error(t('Force shutdown must be checked!'))
|
||||
);
|
||||
}
|
||||
return Promise.resolve();
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user