mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
CA-286291: Add the additional menu items immediately after the first item, so we don't have to wait for the WLB recommendations to be
retrieved. Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
ba8a612c01
commit
8992e55141
@ -89,7 +89,8 @@ namespace XenAdmin.Commands
|
|||||||
}
|
}
|
||||||
|
|
||||||
VisualMenuItemAlignData.ParentStrip = this;
|
VisualMenuItemAlignData.ParentStrip = this;
|
||||||
IXenConnection connection = Command.GetSelection()[0].Connection;
|
var selection = Command.GetSelection();
|
||||||
|
IXenConnection connection = selection[0].Connection;
|
||||||
bool wlb = Helpers.WlbEnabled(connection);
|
bool wlb = Helpers.WlbEnabled(connection);
|
||||||
|
|
||||||
if (wlb)
|
if (wlb)
|
||||||
@ -109,6 +110,9 @@ namespace XenAdmin.Commands
|
|||||||
item.Tag = host;
|
item.Tag = host;
|
||||||
base.DropDownItems.Add(item);
|
base.DropDownItems.Add(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adds the migrate wizard button, do this before the enable checks on the other items
|
||||||
|
AddAdditionalMenuItems(selection);
|
||||||
|
|
||||||
UpdateHostList();
|
UpdateHostList();
|
||||||
}
|
}
|
||||||
@ -231,8 +235,6 @@ namespace XenAdmin.Commands
|
|||||||
{
|
{
|
||||||
DropDownItems.Insert(hostMenuItems.IndexOf(menuItem) + 1, menuItem);
|
DropDownItems.Insert(hostMenuItems.IndexOf(menuItem) + 1, menuItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
AddAdditionalMenuItems(selection);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void EnableAppropriateHostsNoWlb()
|
private void EnableAppropriateHostsNoWlb()
|
||||||
@ -262,9 +264,6 @@ namespace XenAdmin.Commands
|
|||||||
if (Stopped)
|
if (Stopped)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Adds the migrate wizard button, do this before the enable checks on the other items
|
|
||||||
AddAdditionalMenuItems(selection);
|
|
||||||
|
|
||||||
foreach (VMOperationToolStripMenuSubItem item in hostMenuItems)
|
foreach (VMOperationToolStripMenuSubItem item in hostMenuItems)
|
||||||
{
|
{
|
||||||
var host = item.Tag as Host;
|
var host = item.Tag as Host;
|
||||||
|
Loading…
Reference in New Issue
Block a user