mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-08 16:36:47 +00:00
followup: network selector: reorder columns and adapt widths
and use format_boolean to render the active column also hide the type column by default, it often is not too important, and can be derived from the interface name, e.g., vmbrX -> bridge, bondX -> bond, etc. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
607c37efd1
commit
ce8c5365c2
@ -94,36 +94,33 @@ Ext.define('Proxmox.form.NetworkSelector', {
|
||||
listConfig: {
|
||||
width: 600,
|
||||
columns: [
|
||||
{
|
||||
|
||||
header: gettext('CIDR'),
|
||||
dataIndex: 'cidr',
|
||||
hideable: false,
|
||||
flex: 1
|
||||
},
|
||||
{
|
||||
header: gettext('Interface'),
|
||||
sortable: true,
|
||||
flex:1,
|
||||
width: 90,
|
||||
dataIndex: 'iface'
|
||||
},
|
||||
{
|
||||
header: gettext('Active'),
|
||||
sortable: true,
|
||||
flex:1,
|
||||
renderer: Proxmox.Utils.format_boolean,
|
||||
width: 60,
|
||||
dataIndex: 'active'
|
||||
},
|
||||
{
|
||||
|
||||
header: gettext('CIDR'),
|
||||
dataIndex: 'cidr',
|
||||
sortable: true,
|
||||
hideable: false,
|
||||
flex:1
|
||||
},
|
||||
{
|
||||
header: gettext('Type'),
|
||||
sortable: true,
|
||||
flex:1,
|
||||
width: 80,
|
||||
hidden: true,
|
||||
dataIndex: 'type'
|
||||
},
|
||||
{
|
||||
header: gettext('Comment'),
|
||||
sortable: true,
|
||||
flex:1,
|
||||
flex: 2,
|
||||
dataIndex: 'comments'
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user