mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 14:32:37 +00:00
ui: vm/usbedit: omit usb3 changes for spice completely
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4d51f6572b
commit
410313f8b2
@ -13,13 +13,10 @@ Ext.define('PVE.qemu.USBInputPanel', {
|
|||||||
change: function(field, newValue, oldValue) {
|
change: function(field, newValue, oldValue) {
|
||||||
var hwidfield = this.lookupReference('hwid');
|
var hwidfield = this.lookupReference('hwid');
|
||||||
var portfield = this.lookupReference('port');
|
var portfield = this.lookupReference('port');
|
||||||
var usb3field = this.lookupReference('usb3');
|
|
||||||
if (field.inputValue === 'hostdevice') {
|
if (field.inputValue === 'hostdevice') {
|
||||||
hwidfield.setDisabled(!newValue);
|
hwidfield.setDisabled(!newValue);
|
||||||
} else if(field.inputValue === 'port') {
|
} else if(field.inputValue === 'port') {
|
||||||
portfield.setDisabled(!newValue);
|
portfield.setDisabled(!newValue);
|
||||||
} else if(field.inputValue === 'spice') {
|
|
||||||
usb3field.setDisabled(!newValue);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user