all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager] ui: MultiDiskPanel: fix default LXC rootfs disk missing
@ 2026-05-19  8:58 Filip Schauer
  2026-05-19  9:11 ` Dominik Csapak
  0 siblings, 1 reply; 3+ messages in thread
From: Filip Schauer @ 2026-05-19  8:58 UTC (permalink / raw)
  To: pve-devel

Commit aecf27bd moved the initial disk addition from afterrender to
setNodename so that architecture-specific defaults are available when
the first disk is added in the VM creation wizard. However, the LXC
wizard never calls setNodename on the MultiMPPanel, so the initial disk
was never added and the Disks tab appeared empty.

Restore the afterrender fallback, gated on addedFirstDisk, so it is a
no-op when setNodename already fired but still triggers otherwise.

Fixes: aecf27bd (fix #7599: ui: qemu: wizard: fix disk controller for windows with second cd drive)
Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
---
 www/manager6/panel/MultiDiskEdit.js | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/www/manager6/panel/MultiDiskEdit.js b/www/manager6/panel/MultiDiskEdit.js
index 3de07674..b202f3ac 100644
--- a/www/manager6/panel/MultiDiskEdit.js
+++ b/www/manager6/panel/MultiDiskEdit.js
@@ -33,9 +33,7 @@ Ext.define('PVE.panel.MultiDiskPanel', {
             let me = this;
             let view = me.getView();
             me.addDiskChecked(false);
-            if (!view.addedFirstDisk) {
-                view.addedFirstDisk = true;
-            }
+            view.addedFirstDisk = true;
         },
 
         onImport: function () {
@@ -225,6 +223,15 @@ Ext.define('PVE.panel.MultiDiskPanel', {
             'grid[reference=grid]': {
                 selectionchange: 'onSelectionChange',
             },
+            '#': {
+                afterrender: function (view) {
+                    let me = this;
+                    if (!view.addedFirstDisk) {
+                        me.onAdd();
+                        me.lookup('grid').getSelectionModel().select(0, false);
+                    }
+                },
+            },
         },
     },
 
-- 
2.47.3





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

end of thread, other threads:[~2026-05-19  9:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-19  8:58 [PATCH manager] ui: MultiDiskPanel: fix default LXC rootfs disk missing Filip Schauer
2026-05-19  9:11 ` Dominik Csapak
2026-05-19  9:27   ` Filip Schauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal