[pve-devel] [PATCH 5/5] add migration_all button
Alexandre Derumier
aderumier at odiso.com
Thu Apr 10 17:12:59 CEST 2014
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 072be6e..d77daa3 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