From 9beeadc77ad6a767bac4a99340f4a1cc3a9f28a2 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 21 Nov 2020 17:15:13 +0100 Subject: [PATCH] input panel: make advanced column check more flexible allow that any of the three column/docked definitions can be set, without setting the first one to an empty array to go in that if branch. Note, column2 works fine, but I did not greatly test a sole advancedColumnB definition, so there may be still some improvements for fixes - but at that point the user could also use advancedItems to have full control. Signed-off-by: Thomas Lamprecht --- src/panel/InputPanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panel/InputPanel.js b/src/panel/InputPanel.js index ed3521a..c93f39d 100644 --- a/src/panel/InputPanel.js +++ b/src/panel/InputPanel.js @@ -166,7 +166,7 @@ Ext.define('Proxmox.panel.InputPanel', { }, ]; me.advancedItems = undefined; - } else if (me.advancedColumn1) { + } else if (me.advancedColumn1 || me.advancedColumn2 || me.advancedColumnB) { advItems = [ { layout: { @@ -181,7 +181,7 @@ Ext.define('Proxmox.panel.InputPanel', { items: [ { padding: '0 10 0 0', - items: me.advancedColumn1, + items: me.advancedColumn1 || [], // allow empty column }, { padding: '0 0 0 10',