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. Tracked-On: #7506 Signed-off-by: Wu Zhou <wu.zhou@intel.com>
This commit is contained in:
parent
e106766b9e
commit
c4216a3817
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue