]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: follow up style fixes, don't cram expressions into one line
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 30 Jan 2020 18:31:44 +0000 (19:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 30 Jan 2020 18:31:54 +0000 (19:31 +0100)
We do not want to have multiple expressions on the same line, if it'
really is an exception.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/tree/SnapshotTree.js
www/manager6/window/Snapshot.js

index d4007efacb89d11993fe06796fb3dabaf154623c..8ab8bd34475ee7c7ed8a28b9bfe80b7aab89803d 100644 (file)
@@ -102,9 +102,12 @@ Ext.define('PVE.guest.SnapshotTree', {
            });
        },
 
-       rollback: function() { this.snapshotAction('rollback', 'POST'); },
-       remove: function() { this.snapshotAction('', 'DELETE'); },
-
+       rollback: function() {
+           this.snapshotAction('rollback', 'POST');
+       },
+       remove: function() {
+           this.snapshotAction('', 'DELETE');
+       },
        cancel: function() {
            this.load_task.cancel();
        },
@@ -175,7 +178,9 @@ Ext.define('PVE.guest.SnapshotTree', {
                params: { feature: 'snapshot' },
                method: 'GET',
                success: function(response, options) {
-                   var res = response.result.data; vm.set('snapshotFeature', !!res.hasFeature); }
+                   let res = response.result.data;
+                   vm.set('snapshotFeature', !!res.hasFeature);
+               }
            });
        },
 
index 64de92936cbeab6ebaae8f9f8e291bea4e956e75..99204c1626bbdd5232ed555c5196274da8beac9c 100644 (file)
@@ -77,8 +77,16 @@ Ext.define('PVE.window.Snapshot', {
                    ]
                },
                columns: [
-                   {header: gettext('Key'), width: 150, dataIndex: 'key'},
-                   {header: gettext('Value'), flex: 1, dataIndex: 'value'}
+                   {
+                       header: gettext('Key'),
+                       width: 150,
+                       dataIndex: 'key',
+                   },
+                   {
+                       header: gettext('Value'),
+                       flex: 1,
+                       dataIndex: 'value',
+                   }
                ]
            }
        ];