[pve-devel] [PATCH manager 1/2] Fix Indentation to use Proxmox style

Emmanuel Kasper e.kasper at proxmox.com
Mon Dec 18 12:11:35 CET 2017


Signed-off-by: Emmanuel Kasper <e.kasper at proxmox.com>
---
 www/manager6/storage/ZFSEdit.js | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/www/manager6/storage/ZFSEdit.js b/www/manager6/storage/ZFSEdit.js
index bc9d8baf..22f24cb2 100644
--- a/www/manager6/storage/ZFSEdit.js
+++ b/www/manager6/storage/ZFSEdit.js
@@ -132,12 +132,12 @@ Ext.define('PVE.storage.ZFSEdit', {
 	me.isCreate = !me.storageId;
 
 	if (me.isCreate) {
-            me.url = '/api2/extjs/storage';
-            me.method = 'POST';
-        } else {
-            me.url = '/api2/extjs/storage/' + me.storageId;
-            me.method = 'PUT';
-        }
+	    me.url = '/api2/extjs/storage';
+	    me.method = 'POST';
+	} else {
+	    me.url = '/api2/extjs/storage/' + me.storageId;
+	    me.method = 'PUT';
+	}
 
 	var ipanel = Ext.create('PVE.storage.ZFSInputPanel', {
 	    isCreate: me.isCreate,
@@ -145,25 +145,25 @@ Ext.define('PVE.storage.ZFSEdit', {
 	});
 
 	Ext.apply(me, {
-            subject: 'ZFS Storage',
+	    subject: 'ZFS Storage',
 	    isAdd: true,
 	    items: [ ipanel ]
 	});
 
 	me.callParent();
 
-        if (!me.isCreate) {
-            me.load({
-                success:  function(response, options) {
-                    var values = response.result.data;
-                    if (values.nodes) {
-                        values.nodes = values.nodes.split(',');
-                    }
-                    values.enable = values.disable ? 0 : 1;
+	if (!me.isCreate) {
+	    me.load({
+		success:  function(response, options) {
+		    var values = response.result.data;
+		    if (values.nodes) {
+			values.nodes = values.nodes.split(',');
+		    }
+		    values.enable = values.disable ? 0 : 1;
 		    values.writecache = values.nowritecache ? 0 : 1;
-                    ipanel.setValues(values);
-                }
-            });
-        }
+		    ipanel.setValues(values);
+		}
+	    });
+	}
     }
 });
-- 
2.11.0





More information about the pve-devel mailing list