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:
Thomas Lamprecht 2019-06-12 11:46:20 +02:00
parent 607c37efd1
commit ce8c5365c2

View File

@ -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'
}
]