mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #835 from MihaelaStoica/CP-15576
CP-15576: Hide containers options that aren't available for Windows S…
This commit is contained in:
commit
fe29a0bb7d
@ -63,7 +63,7 @@ namespace XenAdmin.Commands
|
||||
|
||||
private static bool CanExecute(DockerContainer dockerContainer)
|
||||
{
|
||||
return dockerContainer.power_state == vm_power_state.Running;
|
||||
return dockerContainer.power_state == vm_power_state.Running && !dockerContainer.Parent.IsWindows;
|
||||
}
|
||||
|
||||
protected override void ExecuteCore(SelectedItemCollection selection)
|
||||
|
@ -1384,7 +1384,7 @@ namespace XenAdmin
|
||||
ShowTab(TabPagePhysicalStorage, !multi && !SearchMode && ((isHostSelected && isHostLive) || isPoolSelected));
|
||||
ShowTab(TabPageNetwork, !multi && !SearchMode && (isVMSelected || (isHostSelected && isHostLive) || isPoolSelected));
|
||||
ShowTab(TabPageNICs, !multi && !SearchMode && ((isHostSelected && isHostLive)));
|
||||
ShowTab(TabPageDockerProcess, !multi && !SearchMode && isDockerContainerSelected);
|
||||
ShowTab(TabPageDockerProcess, !multi && !SearchMode && isDockerContainerSelected && !(SelectionManager.Selection.First as DockerContainer).Parent.IsWindows);
|
||||
ShowTab(TabPageDockerDetails, !multi && !SearchMode && isDockerContainerSelected);
|
||||
|
||||
bool isPoolOrLiveStandaloneHost = isPoolSelected || (isHostSelected && isHostLive && selectionPool == null);
|
||||
|
Loading…
Reference in New Issue
Block a user