[pve-devel] [PATCH cluster v11 5/5] datacenter.cfg: add 'ordering' to 'tag-style' config
Dominik Csapak
d.csapak at proxmox.com
Wed Nov 16 16:47:59 CET 2022
such that the admin can decide if the tags should be sorted in the gui
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
data/PVE/DataCenterConfig.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/data/PVE/DataCenterConfig.pm b/data/PVE/DataCenterConfig.pm
index 0836891..f72974e 100644
--- a/data/PVE/DataCenterConfig.pm
+++ b/data/PVE/DataCenterConfig.pm
@@ -152,6 +152,13 @@ my $tag_style_format = {
typetext => '<tag>:<hex-color>[:<hex-color-for-text>][;<tag>=...]',
description => "Manual color mapping for tags (semicolon separated).",
},
+ ordering => {
+ optional => 1,
+ type => 'string',
+ enum => ['config', 'alphabetical'],
+ default => 'alphabetical',
+ description => 'Controls the sorting of the tags in the web ui.',
+ }
};
my $user_tag_privs_format = {
--
2.30.2
More information about the pve-devel
mailing list