mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-12-02 05:08:50 +08:00
* fix: allow edit as yaml in create VM page if empty CPU or memory
* refactor: remove getCPUMemoryValidation
---------
(cherry picked from commit 5c2a23924d)
Signed-off-by: Andy Lee <andy.lee@suse.com>
Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
1 parent
1e0e2ea867
commit
3ef5a14567
3 files changed
+25
-21
No files matched your search
@@ -1359,21 +1359,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
getCPUMemoryValidation() {
|
||||
const errors = [];
|
||||
const { cpu, memory } = this;
|
||||
|
||||
if ((!cpu)) {
|
||||
errors.push(this.t('validation.required', { key: this.t('harvester.virtualMachine.input.cpu') }, true));
|
||||
}
|
||||
|
||||
if ((!memory)) {
|
||||
errors.push(this.t('validation.required', { key: this.t('harvester.virtualMachine.input.memory') }, true));
|
||||
}
|
||||
|
||||
return errors;
|
||||
},
|
||||
|
||||
getAccessCredentialsValidation() {
|
||||
const errors = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user