]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/qemu/ProcessorEdit.js
Make CPU Model Selector a searchable grid view
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 10 Sep 2019 17:11:44 +0000 (19:11 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 2 Oct 2019 11:35:44 +0000 (13:35 +0200)
commit06dd1330dfde858f60e9236d91c309ae0f0e1c9c
tree822f36c83e01fef3c8248688903df4d379741ec6
parentaf89f6820b0d0ae4b3c624c83fa7e99b1e95606e
Make CPU Model Selector a searchable grid view

Uses a ComboGrid with search feature and a column for vendor. Can be
sorted by both columns.

Default sort is as given in this file, I tried to align it as
* AMD
* Intel
* Other
alphabetically and in QEMU order (as before, seems to be release date?)
within those "groups".

Doesn't work with value set in widget definition (would need to be
preferredValue), but we always call setValue() anyway (and if we don't,
value will be '', aka the default, which is correct too), so just remove
that from ProcessorEdit.js.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/form/CPUModelSelector.js
www/manager6/qemu/ProcessorEdit.js