Skip to content

Commit

Permalink
Merge pull request #2250 from metalice/CNV-48466-removing-console-title
Browse files Browse the repository at this point in the history
CNV-48466: Removing console title
  • Loading branch information
openshift-merge-bot[bot] authored Nov 7, 2024
2 parents 8eb66c8 + b91cf02 commit a22ed6d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import { NavPageComponentProps } from '@virtualmachines/details/utils/types';

import { printableVMStatus } from '../../../utils';

import VirtualMachineConsolePageTitle from './components/VirtualMachineConsolePageTitle';

import './VirtualMachineConsolePage.scss';

const VirtualMachineConsolePage: FC<NavPageComponentProps> = ({ obj: vm }) => {
Expand All @@ -32,38 +30,29 @@ const VirtualMachineConsolePage: FC<NavPageComponentProps> = ({ obj: vm }) => {

if (!vmi || vm?.status?.printableStatus === printableVMStatus.Stopped) {
return (
<>
<VirtualMachineConsolePageTitle />
<EmptyState>
<EmptyStateBody>
{t('This VirtualMachine is down. Please start it to access its console.')}
</EmptyStateBody>
</EmptyState>
</>
<EmptyState>
<EmptyStateBody>
{t('This VirtualMachine is down. Please start it to access its console.')}
</EmptyStateBody>
</EmptyState>
);
}

if (!vmiLoaded) {
return (
<>
<VirtualMachineConsolePageTitle />
<Bullseye>
<Loading />
</Bullseye>
</>
<Bullseye>
<Loading />
</Bullseye>
);
}

return (
<>
<VirtualMachineConsolePageTitle />
<PageSection
className="VirtualMachineConsolePage-page-section"
variant={PageSectionVariants.light}
>
<Consoles consoleContainerClass="virtual-machine-console-page" vmi={vmi} />
</PageSection>
</>
<PageSection
className="VirtualMachineConsolePage-page-section"
variant={PageSectionVariants.light}
>
<Consoles consoleContainerClass="virtual-machine-console-page" vmi={vmi} />
</PageSection>
);
};

Expand Down

This file was deleted.

This file was deleted.

0 comments on commit a22ed6d

Please sign in to comment.