config-tools: bugfix for saving configuration
When user delete all the VMs from UI, and click 'Save' button, a warning
message should appear to show that at least one VM is needed.
@@ -349,6 +349,10 @@ export default {
return errorFlag
},
saveScenario() {
+ if (_.isEmpty(this.scenario.vm)) {
+ alert("Please add at least one VM")
+ return
+ }
let errorFlag = false
errorFlag = this.confirmVmName()
this.assignVMID()
