X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=www%2Fmanager6%2Fqemu%2FAgentIPView.js;h=c3b1f89fd58ebd2aa959588e601c956aff63a908;hb=8058410f40568d46d323cd6ad3b17c3327789594;hp=32e8b08df3f5dd32db01ddd849614c391ae5af56;hpb=c84c5c9ad741ce9ecf6c146a90a54bfe6c26d23f;p=pve-manager.git diff --git a/www/manager6/qemu/AgentIPView.js b/www/manager6/qemu/AgentIPView.js index 32e8b08d..c3b1f89f 100644 --- a/www/manager6/qemu/AgentIPView.js +++ b/www/manager6/qemu/AgentIPView.js @@ -4,7 +4,7 @@ Ext.define('PVE.window.IPInfo', { title: gettext('Guest Agent Network Information'), height: 300, layout: { - type: 'fit' + type: 'fit', }, modal: true, items: [ @@ -16,12 +16,12 @@ Ext.define('PVE.window.IPInfo', { { dataIndex: 'name', text: gettext('Name'), - flex: 3 + flex: 3, }, { dataIndex: 'hardware-address', text: gettext('MAC address'), - width: 140 + width: 140, }, { dataIndex: 'ip-addresses', @@ -36,16 +36,16 @@ Ext.define('PVE.window.IPInfo', { val.forEach(function(ip) { var addr = ip['ip-address']; var pref = ip.prefix; - if (addr && pref) { + if (addr && pref) { ips.push(addr + '/' + pref); } }); return ips.join('
'); - } - } - ] - } - ] + }, + }, + ], + }, + ], }); Ext.define('PVE.qemu.AgentIPView', { @@ -54,7 +54,7 @@ Ext.define('PVE.qemu.AgentIPView', { layout: { type: 'hbox', - align: 'top' + align: 'top', }, nics: [], @@ -62,7 +62,7 @@ Ext.define('PVE.qemu.AgentIPView', { items: [ { xtype: 'box', - html: ' IPs' + html: ' IPs', }, { xtype: 'container', @@ -70,7 +70,7 @@ Ext.define('PVE.qemu.AgentIPView', { layout: { type: 'vbox', align: 'right', - pack: 'end' + pack: 'end', }, items: [ { @@ -78,8 +78,8 @@ Ext.define('PVE.qemu.AgentIPView', { flex: 1, itemId: 'ipBox', style: { - 'text-align': 'right' - } + 'text-align': 'right', + }, }, { xtype: 'button', @@ -93,10 +93,10 @@ Ext.define('PVE.qemu.AgentIPView', { win.down('grid').getStore().setData(me.nics); win.show(); }, - text: gettext('More') - } - ] - } + text: gettext('More'), + }, + ], + }, ], getDefaultIps: function(nics) { @@ -106,7 +106,6 @@ Ext.define('PVE.qemu.AgentIPView', { if (nic['hardware-address'] && nic['hardware-address'] != '00:00:00:00:00:00' && nic['hardware-address'] != '0:0:0:0:0:0') { - var nic_ips = nic['ip-addresses'] || []; nic_ips.forEach(function(ip) { var p = ip['ip-address']; @@ -194,8 +193,8 @@ Ext.define('PVE.qemu.AgentIPView', { method: 'POST', proxy: { type: 'proxmox', - url: '/api2/json/nodes/' + nodename + '/qemu/' + vmid + '/agent/network-get-interfaces' - } + url: '/api2/json/nodes/' + nodename + '/qemu/' + vmid + '/agent/network-get-interfaces', + }, }); me.callParent(); @@ -218,5 +217,5 @@ Ext.define('PVE.qemu.AgentIPView', { // check if the guest agent is there on every statusstore load me.mon(me.rstore, 'load', me.startIPStore, me); - } + }, });