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 <t.lamprecht@proxmox.com>
This commit is contained in:
parent
03ea6d7971
commit
9beeadc77a
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user