]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: dc options: support setting case sensitive
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Nov 2022 07:49:13 +0000 (08:49 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Nov 2022 07:49:13 +0000 (08:49 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/OptionView.js

index efdf3ac5379168bde8709e4618180a2a700e9d02..081f9c488a18e94a6e7046f7cf5f286b8bc57660 100644 (file)
@@ -344,6 +344,9 @@ Ext.define('PVE.dc.OptionView', {
                let txt = Ext.String.format(gettext("Tree Shape: {0}"), shapeText);
                let orderText = PVE.Utils.tagOrderOptions[value.ordering ?? '__default__'];
                txt += `, ${Ext.String.format(gettext("Ordering: {0}"), orderText)}`;
+               if (value['case-sensitive']) {
+                   txt += `, ${gettext('Case-Sensitive')}`;
+               }
                if (Object.keys(colors).length > 0) {
                    txt += `, ${gettext('Color Overrides')}: `;
                    for (const tag of Object.keys(colors)) {
@@ -385,6 +388,9 @@ Ext.define('PVE.dc.OptionView', {
                            if (values.ordering) {
                                style.ordering = values.ordering;
                            }
+                           if (values['case-sensitive']) {
+                               style['case-sensitive'] = 1;
+                           }
                            let value = PVE.Parser.printPropertyString(style);
                            if (value === '') {
                                return {
@@ -445,6 +451,13 @@ Ext.define('PVE.dc.OptionView', {
                                value: '__default__',
                                deleteEmpty: true,
                            },
+                           {
+                               name: 'case-sensitive',
+                               xtype: 'proxmoxcheckbox',
+                               fieldLabel: gettext('Case-Sensitive'),
+                               boxLabel: gettext('Applies to new edits'),
+                               value: 0,
+                           },
                            {
                                xtype: 'displayfield',
                                fieldLabel: gettext('Color Overrides'),