ui: vm/usbedit: omit usb3 changes for spice completely

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-09-23 08:17:56 +02:00
parent 511e9b0131
commit 54671987be

View File

@ -13,13 +13,10 @@ Ext.define('PVE.qemu.USBInputPanel', {
change: function(field, newValue, oldValue) {
var hwidfield = this.lookupReference('hwid');
var portfield = this.lookupReference('port');
var usb3field = this.lookupReference('usb3');
if (field.inputValue === 'hostdevice') {
hwidfield.setDisabled(!newValue);
} else if(field.inputValue === 'port') {
portfield.setDisabled(!newValue);
} else if(field.inputValue === 'spice') {
usb3field.setDisabled(!newValue);
}
}
},