]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: IP set: fix indentation and whitespace issues
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Feb 2024 18:08:01 +0000 (19:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 28 Feb 2024 13:23:17 +0000 (14:23 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/panel/IPSet.js

index d96ed18a6da8b213d0270fde8dfb9987637d4d69..369ca68d2c169b62d0de94fff2cc9ee5ae27c036 100644 (file)
@@ -143,8 +143,17 @@ Ext.define('PVE.IPSetList', {
            tbar: ['<b>IPSet:</b>', me.addBtn, me.removeBtn, me.editBtn],
            selModel: sm,
            columns: [
-               { header: 'IPSet', dataIndex: 'name', width: '100' },
-               { header: gettext('Comment'), dataIndex: 'comment', renderer: Ext.String.htmlEncode, flex: 1 },
+               {
+                   header: 'IPSet',
+                   dataIndex: 'name',
+                   width: 100,
+               },
+               {
+                   header: gettext('Comment'),
+                   dataIndex: 'comment',
+                   renderer: Ext.String.htmlEncode,
+                   flex: 1,
+               },
            ],
            listeners: {
                itemdblclick: run_editor,
@@ -181,12 +190,12 @@ Ext.define('PVE.IPSetCidrEdit', {
 
 
        if (me.isCreate) {
-            me.url = '/api2/extjs' + me.base_url;
-            me.method = 'POST';
-        } else {
-            me.url = '/api2/extjs' + me.base_url + '/' + me.cidr;
-            me.method = 'PUT';
-        }
+           me.url = '/api2/extjs' + me.base_url;
+           me.method = 'POST';
+       } else {
+           me.url = '/api2/extjs' + me.base_url + '/' + me.cidr;
+           me.method = 'PUT';
+       }
 
        var column1 = [];
 
@@ -452,8 +461,8 @@ Ext.define('PVE.IPSet', {
        });
 
        Ext.apply(me, {
-            layout: 'border',
-            items: [ipset_list, ipset_panel],
+           layout: 'border',
+           items: [ipset_list, ipset_panel],
            listeners: {
                show: function() {
                    ipset_list.fireEvent('show', ipset_list);