Skip to content

Commit

Permalink
show vm link in vm list if vm created
Browse files Browse the repository at this point in the history
Signed-off-by: Yaacov Zamir <[email protected]>
  • Loading branch information
yaacov committed Mar 21, 2024
1 parent f8297f2 commit fbf5da6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const MigrationVirtualMachinesRowExtended: React.FC<RowProps<VMData>> = (
const conditions = props.resourceData.statusVM?.conditions;
const pods = props.resourceData.pods;
const jobs = props.resourceData.jobs;
const success = conditions?.find((c) => c.type === 'Succeeded' && c.status === 'True');
const vmCreated = pipeline.find(
(p) => p?.name === 'VirtualMachineCreation' && p?.phase === 'Completed',
);

const getStatusLabel = (status: string) => {
switch (status) {
Expand All @@ -37,7 +39,7 @@ export const MigrationVirtualMachinesRowExtended: React.FC<RowProps<VMData>> = (

return (
<PageSection>
{success && (
{vmCreated && (
<>
<SectionHeading
text={'Virtual machine'}
Expand Down

0 comments on commit fbf5da6

Please sign in to comment.