[pve-devel] [PATCH manager 1/2] combine if paths

Dominik Csapak d.csapak at proxmox.com
Thu Mar 3 14:28:46 CET 2016


we had the same actions for different if paths,
now they are combined
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager/qemu/HDMove.js | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/www/manager/qemu/HDMove.js b/www/manager/qemu/HDMove.js
index 824a898..6144060 100644
--- a/www/manager/qemu/HDMove.js
+++ b/www/manager/qemu/HDMove.js
@@ -71,15 +71,13 @@ Ext.define('PVE.window.HDMove', {
                 listeners: {
                     change: function(f, value) {
                         var rec = f.store.getById(value);
-			if (rec.data.type === 'iscsi') {
-                            me.formatsel.setValue('raw');
-                            me.formatsel.setDisabled(true);
-                        } else if (rec.data.type === 'lvm' ||
-				   rec.data.type === 'lvmthin' ||
-                                   rec.data.type === 'rbd' ||
-                                   rec.data.type === 'sheepdog' ||
-                                   rec.data.type === 'zfs' ||
-				   rec.data.type === 'zfspool'
+			if (rec.data.type === 'iscsi' ||
+			    rec.data.type === 'lvm' ||
+			    rec.data.type === 'lvmthin' ||
+			    rec.data.type === 'rbd' ||
+			    rec.data.type === 'sheepdog' ||
+			    rec.data.type === 'zfs' ||
+			    rec.data.type === 'zfspool'
                         ) {
                             me.formatsel.setValue('raw');
                             me.formatsel.setDisabled(true);
-- 
2.1.4





More information about the pve-devel mailing list