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

Dominik Csapak d.csapak at proxmox.com
Mon Jul 31 11:28:42 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 9915d082..a957f329 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 d254b969..23489bef 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