]> git.proxmox.com Git - pve-manager.git/commit
ui: pci/usb mapping: rework mapping panel for better user experience
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 21 Jun 2023 07:41:42 +0000 (09:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jun 2023 08:03:52 +0000 (10:03 +0200)
commit08526cf56ec310fcecb6fcab9e71546f3de460c4
tree294334357d42d2d0b8f106106cd06c0116217ebf
parent035ce4d4b461d6d8e3abb88405f3d2fb106430cc
ui: pci/usb mapping: rework mapping panel for better user experience

by removing the confusing buttons in the toolbar and adding them as
actions in an actioncolumn. There a only relevant actions are visible
and get a more expressive tooltip

with this, we now differentiate between 4 modes of the edit window:
* create a new mapping altogether
  - shows all fields
* edit existing mapping on top level
  - show only 'global' fields (comment, mdev), so no mappings
* add new host mapping
  - shows nodeselector, mapping (and mdev, but disabled)
    (informational only)
* edit existing host mapping
  - show selected node (displayfield) mdev and mappings, but only
    mappings are editable

we have to split the nodeselector into two fields, since the disabling
cbind does not pass through to the editconfig (and thus makes the form
invalid if we try that)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/css/ext6-pve.css
www/manager6/tree/ResourceMapTree.js
www/manager6/window/PCIMapEdit.js
www/manager6/window/USBMapEdit.js