message: Bug Fix pending changes tab redirection issue
diff: @@ -10,9 +10,8 @@ import {
  } from '../selectors/vm-like/next-run-changes';
  import { vmFlavorModal } from '../components/modals';
  import { BootOrderModal } from '../components/modals/boot-order-modal';
  -import { history } from '@console/internal/components/utils/router';
  import { VMKind, VMIKind } from '../types';
  -import { getVMTabURL } from './url';
  +import { getVMTabURL, redirectToTab } from './url';
  export const getPendingChanges = (vmWrapper: VMWrapper, vmiWrapper: VMIWrapper): PendingChanges => {
  const vm = vmWrapper.asResource();
  @@ -20,7 +19,7 @@ export const getPendingChanges = (vmWrapper: VMWrapper, vmiWrapper: VMIWrapper):
  [IsPendingChange.flavor]: {
  isPendingChange: isFlavorChanged(vmWrapper, vmiWrapper),
  execAction: () => {
  - history.push(getVMTabURL(vm, VMTabURLEnum.details));
  + redirectToTab(getVMTabURL(vm, VMTabURLEnum.details));
  vmFlavorModal({ vmLike: vm, blocking: true });
  },
  vmTab: VMTabEnum.details,
  @@ -28,24 +27,24 @@ export const getPendingChanges = (vmWrapper: VMWrapper, vmiWrapper: VMIWrapper):
  [IsPendingChange.bootOrder]: {
  isPendingChange: isBootOrderChanged(vmWrapper, vmiWrapper),
  execAction: () => {
  - history.push(getVMTabURL(vm, VMTabURLEnum.details));
  + redirectToTab(getVMTabURL(vm, VMTabURLEnum.details));
  BootOrderModal({ vmLikeEntity: vm, modalClassName: 'modal-lg' });
  },
  vmTab: VMTabEnum.details,
  },
  [IsPendingChange.env]: {
  isPendingChange: isEnvDisksChanged(vmWrapper, vmiWrapper),
  - execAction: () => history.push(getVMTabURL(vm, VMTabURLEnum.env)),
  + execAction: () => redirectToTab(getVMTabURL(vm, VMTabURLEnum.env)),
  vmTab: VMTabEnum.env,
  },
  [IsPendingChange.nics]: {
  isPendingChange: isNicsChanged(vmWrapper, vmiWrapper),
  - execAction: () => history.push(getVMTabURL(vm, VMTabURLEnum.nics)),
  + execAction: () => redirectToTab(getVMTabURL(vm, VMTabURLEnum.nics)),
  vmTab: VMTabEnum.nics,
  },
  [IsPendingChange.disks]: {
  isPendingChange: isDisksChanged(vmWrapper, vmiWrapper),
  - execAction: () => history.push(getVMTabURL(vm, VMTabURLEnum.disks)),
  + execAction: () => redirectToTab(getVMTabURL(vm, VMTabURLEnum.disks)),
  vmTab: VMTabEnum.disks,
  },
  };
  