Skip to content

Commit

Permalink
AB#1114: Add classification property to footer banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Chessray committed Jun 14, 2024
1 parent 7cdd173 commit 5028b60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 4 additions & 3 deletions client/src/components/Compact.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ CompactHeaderContent.propTypes = {
sensitiveInformation: PropTypes.bool
}

export const CompactFooterContent = ({ object }) => {
export const CompactFooterContent = ({ object, classification }) => {
const location = useLocation()
const { currentUser, appSettings } = useContext(AppContext)
return (
Expand All @@ -150,7 +150,7 @@ export const CompactFooterContent = ({ object }) => {
{object.uuid}
</Link>
</span>
<ClassificationBanner />
<ClassificationBanner classification={classification} />
<PrintedByBoxS>
<div>
printed by{" "}
Expand All @@ -169,7 +169,8 @@ export const CompactFooterContent = ({ object }) => {
}

CompactFooterContent.propTypes = {
object: PropTypes.object
object: PropTypes.object,
classification: PropTypes.string
}

const SensitivityInformation = () => {
Expand Down
7 changes: 6 additions & 1 deletion client/src/pages/reports/Compact.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,12 @@ const CompactReportView = ({ pageDispatchers }) => {
)}
</FullColumn>
</CompactTable>
<CompactFooterContent object={report} />
<CompactFooterContent
object={report}
classification={
Settings.classification.choices[report.classification]
}
/>
</CompactView>
</>
)}
Expand Down

0 comments on commit 5028b60

Please sign in to comment.