[pve-devel] [PATCH pve-storage/pve-manager 1/1 v2] add field to set subdir-depth in web interface
Noel Ullreich
n.ullreich at proxmox.com
Tue May 16 16:51:15 CEST 2023
When adding or editing a storage device in Datacenter->Storage in the
web interface, the subdirectory depth can be set in the advanced menu.
Signed-off-by: Noel Ullreich <n.ullreich at proxmox.com>
---
www/manager6/storage/Base.js | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/www/manager6/storage/Base.js b/www/manager6/storage/Base.js
index c8c735f3..c6844426 100644
--- a/www/manager6/storage/Base.js
+++ b/www/manager6/storage/Base.js
@@ -48,6 +48,7 @@ Ext.define('PVE.panel.StorageBase', {
name: 'enable',
checked: true,
uncheckedValue: 0,
+ minValue: 0,
fieldLabel: gettext('Enable'),
},
);
@@ -63,13 +64,23 @@ Ext.define('PVE.panel.StorageBase', {
deleteEmpty: !me.isCreate,
value: '__default__',
};
+ const recursionDepth = {
+ xtype: 'proxmoxintegerfield',
+ name: 'subdir-depth',
+ fieldLabel: gettext('Subdirectory Depth'),
+ allowBlank: false,
+ value: 0,
+ minValue: 0,
+ };
me.advancedColumn1 = me.advancedColumn1 || [];
me.advancedColumn2 = me.advancedColumn2 || [];
if (me.advancedColumn2.length < me.advancedColumn1.length) {
me.advancedColumn2.unshift(preallocSelector);
+ me.advancedColumn2.unshift(recursionDepth);
} else {
me.advancedColumn1.unshift(preallocSelector);
+ me.advancedColumn1.unshift(recursionDepth);
}
}
--
2.30.2
More information about the pve-devel
mailing list