]> git.proxmox.com Git - pve-cluster.git/commitdiff
datacenter config: add 'ordering' property to 'tag-style' option
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 16 Nov 2022 15:47:59 +0000 (16:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Nov 2022 09:02:13 +0000 (10:02 +0100)
So that the admin can decide if the tags should be sorted in the
front end UI.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/DataCenterConfig.pm

index 0836891462314ff031948db6bc6e11c48386c26e..f72974eba93a097f997d527014935f4c93aad227 100644 (file)
@@ -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 = {