mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 12:19:06 +00:00
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:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user