[pve-devel] [PATCH 5/5] add migration_all button

Alexandre Derumier aderumier at odiso.com
Mon Feb 9 09:43:59 CET 2015


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 www/manager/node/Config.js |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/www/manager/node/Config.js b/www/manager/node/Config.js
index 0992e15..7e0d04a 100644
--- a/www/manager/node/Config.js
+++ b/www/manager/node/Config.js
@@ -60,6 +60,17 @@ Ext.define('PVE.node.Config', {
 	    }
 	});
 
+	var migrateallvmBtn = Ext.create('PVE.button.Button', {
+	    text: gettext('Migrate All VMs'),
+	    handler: function() {
+                var win = Ext.create('PVE.window.MigrateAll', {
+                    nodename: nodename,
+                });
+                win.show();
+                me.mon(win, 'close', me.reload, me);
+	    }
+	});
+
 	var restartBtn = Ext.create('PVE.button.Button', {
 	    text: gettext('Restart'),
 	    disabled: !caps.nodes['Sys.PowerMgmt'],
@@ -91,7 +102,7 @@ Ext.define('PVE.node.Config', {
 	    title: gettext('Node') + " '" + nodename + "'",
 	    hstateid: 'nodetab',
 	    defaults: { statusStore: me.statusStore },
-	    tbar: [ startallvmBtn, stopallvmBtn, restartBtn, shutdownBtn, shellBtn ]
+	    tbar: [ startallvmBtn, stopallvmBtn, migrateallvmBtn, restartBtn, shutdownBtn, shellBtn ]
 	});
 
 	if (caps.nodes['Sys.Audit']) {
-- 
1.7.10.4




More information about the pve-devel mailing list