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

Alexandre Derumier aderumier at odiso.com
Wed Mar 13 14:28:01 CET 2013


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 ea4c1ba..8ee1923 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'],
@@ -98,7 +109,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