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:
Mihaela Stoica 2015-08-27 13:57:32 +01:00
commit 5fa790c948
2 changed files with 1 additions and 12 deletions

View File

@ -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();

View File

@ -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);