mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #640 from agimofcarmen/CA-180577
CA-180577: "Not applied" updates list is now removed from the Updates…
This commit is contained in:
commit
5fa790c948
@ -543,8 +543,7 @@ namespace XenAdmin.Commands
|
||||
items.AddIfEnabled(new ShutDownHostCommand(mainWindow, selection));
|
||||
items.AddIfEnabled(new RestartToolstackCommand(mainWindow, selection));
|
||||
items.AddSeparator();
|
||||
|
||||
items.AddIf(new InstallNewUpdateCommand(mainWindow), delegate { return !Host.IsFullyPatched(host, ConnectionsManager.XenConnectionsCopy); });
|
||||
|
||||
items.AddIfEnabled(new RemoveHostCrashDumpsCommand(mainWindow, selection));
|
||||
|
||||
if (host != Helpers.GetMaster(host.Connection) )
|
||||
@ -599,7 +598,6 @@ namespace XenAdmin.Commands
|
||||
items.AddIfEnabled(new PowerOnHostCommand(mainWindow, selection));
|
||||
items.AddIfEnabled(new RestartToolstackCommand(mainWindow, selection));
|
||||
items.AddSeparator();
|
||||
items.AddIf(new InstallNewUpdateCommand(mainWindow), () => !Host.IsFullyPatched(host, ConnectionsManager.XenConnectionsCopy));
|
||||
items.AddIfEnabled(new RemoveHostCrashDumpsCommand(mainWindow, selection));
|
||||
items.AddSeparator();
|
||||
|
||||
|
@ -653,15 +653,6 @@ namespace XenAdmin.TabPages
|
||||
{
|
||||
s.AddEntry(FriendlyName("Pool_patch.applied"), hostAppliedPatches(host));
|
||||
}
|
||||
if (!Host.IsFullyPatched(host, ConnectionsManager.XenConnectionsCopy))
|
||||
{
|
||||
CommandToolStripMenuItem applypatch =
|
||||
new CommandToolStripMenuItem(
|
||||
new InstallNewUpdateCommand(Program.MainWindow), true);
|
||||
|
||||
var menuItems = new[] { applypatch };
|
||||
s.AddEntry(FriendlyName("Pool_patch.not_applied"), hostUnappliedPatches(host), menuItems, Color.Red);
|
||||
}
|
||||
|
||||
// add supplemental packs
|
||||
var suppPacks = hostInstalledSuppPacks(host);
|
||||
|
Loading…
Reference in New Issue
Block a user