misc: configurator:Fix delete vm button apearance
update activeVMID to make the delete vm button disappear
when all VMs are deleted.
@@ -241,7 +241,7 @@ export default {
msg = "Post-launched VMs require the Service VM. If you proceed, all post-launched VMs and their settings will also be deleted. Are you sure you want to proceed?"
isserivevm = true
} else {
- msg = `Delete this virtual machine VM${this.activeVMID}, launch script will alse be deleted if it exists.`
+ msg = `Delete this virtual machine VM${this.activeVMID}, launch script will also be deleted if it exists.`
}
confirm(msg).then((r) => {
if (r) {
@@ -257,6 +257,7 @@ export default {
}
this.vmNameChange('', this.scenario.vm[currentVMIndex].name)
this.scenario.vm.splice(currentVMIndex, 1);
+ this.activeVMID = -1;
this.updateCurrentFormSchema()
this.updateCurrentFormData()
}
