]> git.proxmox.com Git - pve-manager.git/commit
ui: vm/usbedit: cleanup and refactor usb selector change
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Sep 2019 06:42:16 +0000 (08:42 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Sep 2019 06:42:25 +0000 (08:42 +0200)
commit7c72eb5112b497cc974dd1dd0e4acc076f624137
tree66b4fa82502656abedeeae01b39b05fab0160d7d
parent4292a318ee5f51284bf6809676d3c060861c63ba
ui: vm/usbedit: cleanup and refactor usb selector change

split the long ternary operation into a common if/else, to make it
readable.

Also, remove the usb3field.isDisabled check as:
1. we do not disable it anywhere anymore
2. if we would, it makes sense to do this anyhow

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/qemu/USBEdit.js