message: Bug Hide Terminal tab from the NodeDetailsPage if Windows on the Node
diff: import * as React from 'react';
  +import * as _ from 'lodash';
  import { navFactory } from '@console/internal/components/utils';
  import { PodsPage } from '@console/internal/components/pod';
  import { ResourceEventStream } from '@console/internal/components/events';
  +import { NodeKind } from '@console/internal/module/k8s';
  import { DetailsPage } from '@console/internal/components/factory';
  import { nodeStatus } from '../../status/node';
  import NodeDetails from './NodeDetails';
  @@ -9,9 +11,11 @@ import NodeTerminal from './NodeTerminal';
  import { menuActions } from './menu-actions';
  import NodeDashboard from './node-dashboard/NodeDashboard';
  +const NodeDetailsPage: React.FC<React.ComponentProps<typeof DetailsPage>> = (props) => {
  const { editYaml, events, pods } = navFactory;
  -const pages = [
  + const pagesFor = React.useCallback(
  + (node: NodeKind) => [
  {
  href: '',
  name: 'Overview',
  @@ -27,14 +31,26 @@ const pages = [
  <PodsPage showTitle={false} fieldSelector={`spec.nodeName=${obj.metadata.name}`} />
  )),
  events(ResourceEventStream),
  - {
  - href: 'terminal',
  - name: 'Terminal',
  - component: NodeTerminal,
  - },
  -];
  -const NodeDetailsPage: React.FC<React.ComponentProps<typeof DetailsPage>> = (props) => (
  - <DetailsPage {...props} getResourceStatus={nodeStatus} menuActions={menuActions} pages={pages} />
  + ...(_.find(
  + node?.metadata?.labels,
  + (label) =>
  + label['corev1.LabelOSStable'] !== 'windows' ||
  + label['node.openshift.io/os_id'] !== 'Windows',
  + )
  + ? [{ href: 'terminal', name: 'Terminal', component: NodeTerminal }]
  + : []),
  + ],
  + [editYaml, events, pods],
  + );
  +
  + return (
  + <DetailsPage
  + {...props}
  + getResourceStatus={nodeStatus}
  + menuActions={menuActions}
  + pagesFor={pagesFor}
  + />
  );
  +};
  export default NodeDetailsPage;
  