]> git.proxmox.com Git - pve-manager.git/commit
Add 'type' option to AgentFeatureSelector
authorMatt Dunwoodie <ncon@noconroy.net>
Tue, 19 Nov 2019 14:25:55 +0000 (01:25 +1100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 20 Nov 2019 19:45:30 +0000 (20:45 +0100)
commit5a6c563c06dad3355977ddd165dddb550b8dee68
treed84f7e76c5b5602d8a59bbb1fc9a730f28fa9596
parent6aee12f1fcb2e8504a256a3957c0cdbd8dbc33d6
Add 'type' option to AgentFeatureSelector

This adds an extra field to the AgentFeatureSelector that reflects the
change in qemu-server.

Changes since previous version:

 * Use map rather than if/else if/else for type display string.
 * Use Proxmox.Utils.unknownText for unknown type (should not occur with
   regular use).
 * Keep existing fields as boxLabel rather than fieldLabel, as they
   look crammed with fieldLabel.
 * Use __default__ for default option, to save space and replicate
   behaviour in other places.
 * Store option in advancedItems as it is a special case.

Even though the map only contains one item, it will be easily added to
in the future. There is only one item as there is no need to have a
string for "virtio" as it is not displayed because of __default__.

Signed-off-by: Matt Dunwoodie <ncon@noconroy.net>
www/manager6/Utils.js
www/manager6/form/AgentFeatureSelector.js