Skip to content

Commit

Permalink
Fix activity message issue for the application deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyAsirJeyasing committed Oct 9, 2023
1 parent 2718754 commit 2c2937a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ const getCurrentActivity = (
currentStatus,
failoverCluster,
});
} else if ([DRPC_STATUS.Deployed].includes(currentStatus as DRPC_STATUS)) {
return t('{{ currentStatus }} to {{ preferredCluster }}', {
currentStatus,
preferredCluster,
});
} else {
return t('Unknown');
}
Expand Down
1 change: 1 addition & 0 deletions packages/mco/constants/disaster-recovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export enum DRPC_STATUS {
Relocating = 'Relocating',
FailingOver = 'FailingOver',
Relocated = 'Relocated',
Deployed = 'Deployed',
}

// DR cluster type
Expand Down
11 changes: 11 additions & 0 deletions packages/mco/utils/disaster-recovery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,17 @@ export const getDRStatus = ({
</>
),
};
case DRPC_STATUS.Deployed:
return {
text: customText || DRPC_STATUS.Deployed,
icon: <GreenCheckCircleIcon />,
toolTip: (
<>
<h4>{t('Target cluster')}</h4>
<p>{t('Used: {{targetClusters}}', { targetClusters })}</p>
</>
),
};
default:
return {
text: t('Unknown'),
Expand Down

0 comments on commit 2c2937a

Please sign in to comment.