ui: vm/usbedit: omit usb3 changes for spice completely
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
511e9b0131
commit
54671987be
@ -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…
x
Reference in New Issue
Block a user