Skip to content

Commit

Permalink
Merge pull request #5464 from bcgov/test-marshal-JC-FOIMOD-2981
Browse files Browse the repository at this point in the history
FOIMOD-2981 Fix issue on validation to display Communication tab and …
  • Loading branch information
jocelyncabildo-aot authored Dec 4, 2024
2 parents 317304f + 790a3af commit 68f92b9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
17 changes: 4 additions & 13 deletions forms-flow-web/src/components/FOI/FOIRequest/FOIRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1078,15 +1078,6 @@ const FOIRequest = React.memo(({ userDetail, openApplicantProfileModal }) => {
);
};

const showContactApplicantTab = () => {
return (
// requestState !== StateEnum.intakeinprogress.name &&
// requestState !== StateEnum.unopened.name &&
// requestState !== StateEnum.open.name &&
// requestState !== StateEnum.appfeeowing.name &&
requestDetails?.requestType === FOI_COMPONENT_CONSTANTS.REQUEST_TYPE_GENERAL)
}

const getHistoryCount = () => {
let historyCount= applicantCorrespondence.length + requestNotes.filter(
c => c.commentTypeId !== getCommentTypeIdByName(commentTypes, "Ministry Internal") &&
Expand Down Expand Up @@ -1208,7 +1199,7 @@ const FOIRequest = React.memo(({ userDetail, openApplicantProfileModal }) => {
Records
</div>
)}
{showContactApplicantTab() && (
{
<div
className={clsx("tablinks", {
active: tabLinksStatuses.ContactApplicant.active,
Expand All @@ -1221,7 +1212,7 @@ const FOIRequest = React.memo(({ userDetail, openApplicantProfileModal }) => {
? `(${applicantCorrespondence.length})`
: ""}
</div>
)}
}
</>
)}
<div
Expand Down Expand Up @@ -1751,7 +1742,7 @@ const FOIRequest = React.memo(({ userDetail, openApplicantProfileModal }) => {
</>
)}
</div>
{showContactApplicantTab() && (
{
<div
id="ContactApplicant"
className={clsx("tabcontent", {
Expand All @@ -1778,7 +1769,7 @@ const FOIRequest = React.memo(({ userDetail, openApplicantProfileModal }) => {
<Loading />
)}
</div>
)}
}
<div
id="RequestHistory"
className={clsx("tabcontent", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
}
}

.addCorrespondence-menuitem {
li.MuiMenuItem-root {
background-color: #FFF !important;
&:hover,
&:focus {
background-color: #e3f2fd !important;
}
}
}

.previewEmail {
float: right;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,7 @@ export const ContactApplicant = ({
size="small"
fullWidth
>
<div className="addCorrespondence-menuitem">
<MenuItem
onClick={() => addCorrespondence()}
key='messagetoapplicant'
Expand All @@ -983,6 +984,7 @@ export const ContactApplicant = ({
>
Attach Response
</MenuItem>
</div>
</TextField>
</Grid>
</Grid>
Expand Down

0 comments on commit 68f92b9

Please sign in to comment.