Commit 4cecbd65 authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

add migration_all button

Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent 34d8e0f2
...@@ -60,6 +60,17 @@ Ext.define('PVE.node.Config', { ...@@ -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', { var restartBtn = Ext.create('PVE.button.Button', {
text: gettext('Restart'), text: gettext('Restart'),
disabled: !caps.nodes['Sys.PowerMgmt'], disabled: !caps.nodes['Sys.PowerMgmt'],
...@@ -91,7 +102,7 @@ Ext.define('PVE.node.Config', { ...@@ -91,7 +102,7 @@ Ext.define('PVE.node.Config', {
title: gettext('Node') + " '" + nodename + "'", title: gettext('Node') + " '" + nodename + "'",
hstateid: 'nodetab', hstateid: 'nodetab',
defaults: { statusStore: me.statusStore }, defaults: { statusStore: me.statusStore },
tbar: [ startallvmBtn, stopallvmBtn, restartBtn, shutdownBtn, shellBtn ] tbar: [ startallvmBtn, stopallvmBtn, migrateallvmBtn, restartBtn, shutdownBtn, shellBtn ]
}); });
if (caps.nodes['Sys.Audit']) { if (caps.nodes['Sys.Audit']) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment