config-tools: vuart widget's vm_name changes when edited
When vm_name is edited in in the vm tab, the vuart connection widget's
vm_name field should change to the new name. Add name replacing in form
change event.
@@ -297,6 +297,17 @@ export default {
}
}
}
+ if (hvdata.hasOwnProperty('vuart_connections')) {
+ for (let key in hvdata.vuart_connections.vuart_connection) {
+ let connection = hvdata.vuart_connections.vuart_connection[key]
+ for (let key1 in connection.endpoint) {
+ let ep = connection.endpoint[key1];
+ if (ep.vm_name === oldname) {
+ ep.vm_name = newname
+ }
+ }
+ }
+ }
},
assignVMID() {
let vm_priority = {
