but only enable the field for unprivileged containers.
We do this, since newer containers need this feature for basic
functions.

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 www/manager6/lxc/CreateWizard.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/www/manager6/lxc/CreateWizard.js b/www/manager6/lxc/CreateWizard.js
index bd84dece..aead515f 100644
--- a/www/manager6/lxc/CreateWizard.js
+++ b/www/manager6/lxc/CreateWizard.js
@@ -62,6 +62,16 @@ Ext.define('PVE.lxc.CreateWizard', {
                    },
                    fieldLabel: gettext('Unprivileged container'),
                },
+               {
+                   xtype: 'proxmoxcheckbox',
+                   name: 'features',
+                   inputValue: 'nesting=1',
+                   value: true,
+                   bind: {
+                       disabled: '{!unprivileged}',
+                   },
+                   fieldLabel: gettext('Nesting'),
+               },
            ],
            column2: [
                {
-- 
2.30.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to