[pve-devel] [PATCH cluster/manager] fix #1408: ui: make tree sorting configurable

Dominik Csapak d.csapak at proxmox.com
Wed Feb 1 16:49:13 CET 2023


this series allows configuring the sorting of the resource tree

options are the sort-field, if guest types are grouped and if templates
are grouped seperately

it's configurable in the datacenter config and the browser local storage
(latter takes precedence)

not completely sure if the displaying/selecting the default is really
optimal by just showing 'Default'. (more in the comment of the specific
patch 2/3 in pve-manager)

pve-cluster:

Dominik Csapak (1):
  datacenter config: add options for sorting the gui tree

 data/PVE/DataCenterConfig.pm | 37 ++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

pve-manager:

Dominik Csapak (3):
  ui: Utils: refactor refreshing the the resource store/tree
  ui: add TreeSortingEdit window
  fix #1408: ui: ResourceTree: sort the tree according to tree-sorting
    options

 www/manager6/Makefile                  |   1 +
 www/manager6/Utils.js                  |  17 +++-
 www/manager6/Workspace.js              |  27 +++++-
 www/manager6/dc/OptionView.js          |  11 +++
 www/manager6/tree/ResourceTree.js      |  54 +++++++++---
 www/manager6/window/TreeSortingEdit.js | 113 +++++++++++++++++++++++++
 6 files changed, 208 insertions(+), 15 deletions(-)
 create mode 100644 www/manager6/window/TreeSortingEdit.js

-- 
2.30.2






More information about the pve-devel mailing list