mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 03:25:43 +00:00
push column items individually
looks like ExtJS is not automatically flattening the array anymore and items in a multidimensionnal array are not displayed with ExtJS6 lxc/Config.js is still commented because we haven't reached this part in the upgrade, but fixing there too
This commit is contained in:
parent
eb22111997
commit
a2f35eb2ea
@ -89,7 +89,7 @@ Ext.define('PVE.dc.AuthEdit', {
|
||||
var column2 = [];
|
||||
|
||||
if (me.authType === 'ldap' || me.authType === 'ad') {
|
||||
column2.push([
|
||||
column2.push(
|
||||
{
|
||||
xtype: 'textfield',
|
||||
fieldLabel: gettext('Server'),
|
||||
@ -117,7 +117,7 @@ Ext.define('PVE.dc.AuthEdit', {
|
||||
name: 'secure',
|
||||
uncheckedValue: 0
|
||||
}
|
||||
]);
|
||||
);
|
||||
}
|
||||
|
||||
// Two Factor Auth settings
|
||||
|
@ -184,7 +184,7 @@ Ext.define('PVE.lxc.Config', {
|
||||
// }
|
||||
|
||||
// if (caps.vms['VM.Console']) {
|
||||
// me.items.push([
|
||||
// me.items.push(
|
||||
// {
|
||||
// xtype: 'pveFirewallPanel',
|
||||
// title: gettext('Firewall'),
|
||||
@ -193,7 +193,7 @@ Ext.define('PVE.lxc.Config', {
|
||||
// phstateid: me.hstateid,
|
||||
// itemId: 'firewall'
|
||||
// }
|
||||
// ]);
|
||||
// );
|
||||
// }
|
||||
|
||||
// if (caps.vms['Permissions.Modify']) {
|
||||
|
@ -185,7 +185,7 @@ Ext.define('PVE.node.NetworkEdit', {
|
||||
];
|
||||
|
||||
if (me.iftype === 'OVSBond') {
|
||||
column1.push([
|
||||
column1.push(
|
||||
{
|
||||
xtype: 'bondModeSelector',
|
||||
fieldLabel: gettext('Mode'),
|
||||
@ -199,10 +199,10 @@ Ext.define('PVE.node.NetworkEdit', {
|
||||
fieldLabel: gettext('Slaves'),
|
||||
name: 'ovs_bonds'
|
||||
}
|
||||
]);
|
||||
);
|
||||
} else {
|
||||
|
||||
column1.push([
|
||||
column1.push(
|
||||
{
|
||||
xtype: 'pvetextfield',
|
||||
deleteEmpty: !me.create,
|
||||
@ -283,7 +283,7 @@ Ext.define('PVE.node.NetworkEdit', {
|
||||
vtype: 'IP6Address',
|
||||
name: 'gateway6'
|
||||
}
|
||||
]);
|
||||
);
|
||||
}
|
||||
|
||||
Ext.applyIf(me, {
|
||||
|
@ -195,7 +195,7 @@ Ext.define('PVE.qemu.Config', {
|
||||
}
|
||||
|
||||
if (caps.vms['VM.Console']) {
|
||||
me.items.push([
|
||||
me.items.push(
|
||||
{
|
||||
xtype: 'pveFirewallPanel',
|
||||
title: gettext('Firewall'),
|
||||
@ -204,7 +204,7 @@ Ext.define('PVE.qemu.Config', {
|
||||
phstateid: me.hstateid,
|
||||
itemId: 'firewall'
|
||||
}
|
||||
]);
|
||||
);
|
||||
}
|
||||
|
||||
if (caps.vms['Permissions.Modify']) {
|
||||
|
Loading…
Reference in New Issue
Block a user