public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager v2] ui: lxc: set nesting to false for privileged container during creation
@ 2025-03-21 10:35 Michael Köppl
  2025-03-24 11:29 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Köppl @ 2025-03-21 10:35 UTC (permalink / raw)
  To: pve-devel

    The current implementation is slightly misleading. When creating a
    privileged container, the nesting checkbox is disabled but keeps its
    current state. However, nesting is not enabled for privileged containers
    even if the checkbox was set to true. With this change, the nesting
    checkbox is set to its unchecked state whenever it is disabled by
    switching to privileged container creation, making clear that the
    nesting feature will not be enabled.

Signed-off-by: Michael Köppl <m.koeppl@proxmox.com>
---
Changes from v1 to v2:
- Use existing clearOnDisable property instead of data binding and listeners

 www/manager6/lxc/CreateWizard.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/lxc/CreateWizard.js b/www/manager6/lxc/CreateWizard.js
index 62cda27a..4ec192c0 100644
--- a/www/manager6/lxc/CreateWizard.js
+++ b/www/manager6/lxc/CreateWizard.js
@@ -75,6 +75,7 @@ Ext.define('PVE.lxc.CreateWizard', {
 		    name: 'features',
 		    inputValue: 'nesting=1',
 		    value: true,
+		    clearOnDisable: true,
 		    bind: {
 			disabled: '{!unprivileged}',
 		    },
-- 
2.39.5



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-24 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-21 10:35 [pve-devel] [PATCH manager v2] ui: lxc: set nesting to false for privileged container during creation Michael Köppl
2025-03-24 11:29 ` [pve-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal