]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/qemu/AgentIPView.js
ui: eslint: fix various spacing related issues
[pve-manager.git] / www / manager6 / qemu / AgentIPView.js
index 32e8b08df3f5dd32db01ddd849614c391ae5af56..c3b1f89fd58ebd2aa959588e601c956aff63a908 100644 (file)
@@ -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('<br>');
-                   }
-               }
-           ]
-       }
-    ]
+                   },
+               },
+           ],
+       },
+    ],
 });
 
 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: '<i class="fa fa-exchange"></i> IPs'
+           html: '<i class="fa fa-exchange"></i> 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);
-    }
+    },
 });