Skip to content

Commit

Permalink
Merge pull request #1201 from bcgov/dev-AH-FOIMOD-3246
Browse files Browse the repository at this point in the history
Ticket 2646/3246 - Release 11.0 / Consults Observation Fixes 2
  • Loading branch information
Aman-Hundal authored Oct 29, 2024
2 parents 47d2c25 + 53b7185 commit 4258626
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/FOI/Home/ConfirmationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const ConfirmationModal= ({
consultApplyRedlines,
handleApplyRedlines
}) => {
let disableConsultSaveButton = modalData?.modalFor === "consult" && selectedPublicBodyIDs.length < 1;

return (
<ReactModal
Expand Down Expand Up @@ -150,7 +151,7 @@ export const ConfirmationModal= ({
</DialogContentText>
</DialogContent>
<DialogActions className="foippa-modal-actions">
<button className="btn-bottom btn-save btn" onClick={saveDoc} disabled={selectedPublicBodyIDs.length < 1}>
<button className="btn-bottom btn-save btn" onClick={saveDoc} disabled={disableConsultSaveButton}>
{modalData?.modalButtonLabel}
</button>
<button
Expand Down

0 comments on commit 4258626

Please sign in to comment.