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 Sep 20, 2023
1 parent 78961cc commit ad40960
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ const getCurrentActivity = (
currentStatus,
failoverCluster,
});
} else if (
[DRPC_STATUS.Deployed, DRPC_STATUS.Deployed].includes(
currentStatus as DRPC_STATUS
)
) {
return t('{{ currentStatus }} to {{ preferredCluster }}', {
currentStatus,
preferredCluster,
});
} else {
return t('Unknown');
}
Expand Down Expand Up @@ -115,7 +124,7 @@ export const ActivitySection: React.FC<CommonProps> = ({ selectedAppSet }) => {
<StatusIconAndText
icon={getDRStatus({ currentStatus, t }).icon}
title={getCurrentActivity(
currentStatus,
'Deployed',
failoverCluster,
preferredCluster,
t
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

0 comments on commit ad40960

Please sign in to comment.