[pve-devel] [PATCH manager] fix typo in vmtype check

Dominik Csapak d.csapak at proxmox.com
Mon Dec 5 11:04:11 CET 2016


by mistake we checked if me.vtype is 'qemu'
but the property is me.vmtype, so we would always show
restart mode

note that this error was purely cosmetic, behaviour was correct

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/window/Migrate.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index b1a03f5..95d4f3e 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -79,7 +79,7 @@ Ext.define('PVE.window.Migrate', {
 		    uncheckedValue: 0,
 		    defaultValue: 0,
 		    checked: running,
-		    fieldLabel: me.vtype === 'qemu' ? gettext('Online') : gettext('Restart Mode')
+		    fieldLabel: me.vmtype === 'qemu' ? gettext('Online') : gettext('Restart Mode')
 		}
 	    ]
 	});
-- 
2.1.4





More information about the pve-devel mailing list