Adapt the SDN status overview to use the new network resource over the old SDN resource type. Also display the network_type field in addition to the existing fields - so users can discern between different types of network entities.
Signed-off-by: Stefan Hanreich <[email protected]> --- www/manager6/sdn/StatusView.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/www/manager6/sdn/StatusView.js b/www/manager6/sdn/StatusView.js index dd05c73fd..fbc712c6c 100644 --- a/www/manager6/sdn/StatusView.js +++ b/www/manager6/sdn/StatusView.js @@ -33,7 +33,7 @@ Ext.define( ], filters: { property: 'type', - value: 'sdn', + value: 'network', operator: '==', }, }); @@ -77,13 +77,18 @@ Ext.define( { header: 'SDN', width: 80, - dataIndex: 'sdn', + dataIndex: 'network', }, { header: gettext('Node'), width: 80, dataIndex: 'node', }, + { + header: gettext('Type'), + width: 80, + dataIndex: 'network-type', + }, { header: gettext('Status'), width: 80, @@ -102,7 +107,7 @@ Ext.define( function () { Ext.define('pve-sdn-status', { extend: 'Ext.data.Model', - fields: ['id', 'type', 'node', 'status', 'sdn'], + fields: ['id', 'type', 'node', 'status', 'network'], idProperty: 'id', }); }, -- 2.47.3 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
