[pve-devel] [PATCH manager v2 10/11] indentation and jslint fix

Dominik Csapak d.csapak at proxmox.com
Mon Jul 31 15:15:32 CEST 2017


indentation was wrong on those lines, and js lint complains about
alias not being an array later, so make thoses lines not an array

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ceph/OSD.js  | 40 ++++++++++++++++++++--------------------
 www/manager6/ceph/Pool.js |  4 ++--
 2 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index e962c882..80c191f6 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -92,26 +92,26 @@ Ext.define('PVE.CephCreateOsd', {
 
         Ext.applyIf(me, {
 	    url: "/nodes/" + me.nodename + "/ceph/osd",
-            method: 'POST',
-            items: [
-               {
-		   xtype: 'pveCephDiskSelector',
-		   name: 'dev',
-		   nodename: me.nodename,
-		   diskType: 'unused',
-		   fieldLabel: gettext('Disk'),
-		   allowBlank: false
-	       },
-               {
-		   xtype: 'pveCephDiskSelector',
-		   name: 'journal_dev',
-		   nodename: me.nodename,
-		   diskType: 'journal_disks',
-		   fieldLabel: gettext('Journal Disk'),
-		   value: '',
-		   autoSelect: false,
-		   allowBlank: true,
-		   emptyText: 'use OSD disk'
+	    method: 'POST',
+	    items: [
+		{
+		    xtype: 'pveCephDiskSelector',
+		    name: 'dev',
+		    nodename: me.nodename,
+		    diskType: 'unused',
+		    fieldLabel: gettext('Disk'),
+		    allowBlank: false
+		},
+		{
+		    xtype: 'pveCephDiskSelector',
+		    name: 'journal_dev',
+		    nodename: me.nodename,
+		    diskType: 'journal_disks',
+		    fieldLabel: gettext('Journal/DB Disk'),
+		    value: '',
+		    autoSelect: false,
+		    allowBlank: true,
+		    emptyText: 'use OSD disk'
 		},
 		{
 		    xtype: 'pvecheckbox',
diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index fc5f40eb..cfe6af7e 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -1,6 +1,6 @@
 Ext.define('PVE.CephCreatePool', {
     extend: 'PVE.window.Edit',
-    alias: ['widget.pveCephCreatePool'],
+    alias: 'widget.pveCephCreatePool',
 
     subject: 'Ceph Pool',
     isCreate: true,
@@ -67,7 +67,7 @@ Ext.define('PVE.CephCreatePool', {
 
 Ext.define('PVE.node.CephPoolList', {
     extend: 'Ext.grid.GridPanel',
-    alias: ['widget.pveNodeCephPoolList'],
+    alias: 'widget.pveNodeCephPoolList',
 
     onlineHelp: 'chapter_pveceph',
     stateful: true,
-- 
2.11.0





More information about the pve-devel mailing list