message: Bug Disable 'Snapshots' tab on VM details page
diff: @@ -9,7 +9,6 @@ import {
  VirtualMachineInstanceMigrationModel,
  VirtualMachineInstanceModel,
  VirtualMachineModel,
  - VirtualMachineSnapshotModel,
  } from '../../models';
  import { getResource } from '../../utils';
  import {
  @@ -17,7 +16,6 @@ import {
  VM_DETAIL_DISKS_HREF,
  VM_DETAIL_NETWORKS_HREF,
  VM_DETAIL_CONSOLES_HREF,
  - VM_DETAIL_SNAPSHOTS,
  } from '../../constants';
  import { VMEvents } from './vm-events';
  import { VMConsoleFirehose } from './vm-console';
  @@ -26,10 +24,8 @@ import { vmMenuActionsCreator } from './menu-actions';
  import { VMDashboard } from './vm-dashboard';
  import { TEMPLATE_TYPE_LABEL, TEMPLATE_TYPE_VM, VM_DETAIL_ENVIRONMENT } from '../../constants/vm';
  import { VMEnvironmentFirehose } from './vm-environment/vm-environment-page';
  -import { VMSnapshotsPage } from '../vm-snapshots/vm-snapshots';
  import { VMNics } from '../vm-nics';
  import { PendingChangesWarningFirehose } from './pending-changes-warning';
  -import { useK8sGet } from '../../../../../public/components/utils/k8s-get-hook';
  export const breadcrumbsForVMPage = (match: any) => () => [
  {
  @@ -45,8 +41,6 @@ export const breadcrumbsForVMPage = (match: any) => () => [
  export const VirtualMachinesDetailsPage: React.FC<VirtualMachinesDetailsPageProps> = (props) => {
  const { name, ns: namespace } = props.match.params;
  - const [snapData, snapLoaded, snapErr] = useK8sGet(VirtualMachineSnapshotModel);
  - const isSnapshotSupported = snapData && snapLoaded && !snapErr;
  const dashboardPage = {
  href: '', // default landing page
  @@ -84,11 +78,13 @@ export const VirtualMachinesDetailsPage: React.FC<VirtualMachinesDetailsPageProp
  component: VMEnvironmentFirehose,
  };
  + /* Disabled for 4.6 (BZ 1881125)
  const snapshotsPage = {
  href: VM_DETAIL_SNAPSHOTS,
  name: 'Snapshots',
  component: VMSnapshotsPage,
  };
  + */
  const pages = [
  dashboardPage,
  @@ -101,11 +97,6 @@ export const VirtualMachinesDetailsPage: React.FC<VirtualMachinesDetailsPageProp
  disksPage,
  ];
  - // Check if snapshots CRD exists in the cluster (BZ 1878690)
  - if (isSnapshotSupported) {
  - pages.push(snapshotsPage);
  - }
  -
  const resources = [
  getResource(VirtualMachineInstanceModel, {
  namespace,
  