Skip to content

Commit

Permalink
373 - Add new status code "Retired" for expired plans
Browse files Browse the repository at this point in the history
  • Loading branch information
Brijesh committed Nov 18, 2024
1 parent 307b01d commit 48a8429
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/common/Status.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ export const translateStatusBasedOnUser = (status, user, isForVersionsList = fal
statusName = 'Ready For Final Decision';
modifier += '--gray';
break;
case PLAN_STATUS.RETIRED:
statusName = 'Retired';
modifier += '--gray';
break;
default:
modifier += '--not-provided';
break;
Expand Down
1 change: 1 addition & 0 deletions src/constants/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const PLAN_STATUS = {
MANDATORY_AMENDMENT_STAFF: 'APS',
AMENDMENT_AH: 'APA',
SUBMITTED_AS_MANDATORY: 'SAM',
RETIRED: 'RE',
};

export const PDF_DRAFT_STATUSES = [
Expand Down
2 changes: 2 additions & 0 deletions src/utils/helper/plan.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ export const isStatusRecommendNotReady = (status) => status && status.code === P

export const isStatusAwaitingConfirmation = (status) => status && status.code === PLAN_STATUS.AWAITING_CONFIRMATION;

export const isStatusRetired = (status) => status && status.code === PLAN_STATUS.RETIRED;

export const isStatusRecommendForSubmission = (status) =>
status && status.code === PLAN_STATUS.RECOMMEND_FOR_SUBMISSION;

Expand Down

0 comments on commit 48a8429

Please sign in to comment.