Skip to content

Commit

Permalink
Render panel for audited records
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejritter committed Mar 30, 2022
1 parent bb19070 commit fdede13
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/record/RecordSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import upperFirst from 'lodash/upperFirst';
import AuditedRecordPanelContainer from '../../containers/record/AuditedRecordPanelContainer';
import MediaSnapshotPanelContainer from '../../containers/record/MediaSnapshotPanelContainer';
import RelatedRecordPanelContainer from '../../containers/record/RelatedRecordPanelContainer';
import RecordBatchPanelContainer from '../../containers/record/RecordBatchPanelContainer';
Expand Down Expand Up @@ -73,6 +74,7 @@ export default function RecordSidebar(props) {

let mediaSnapshot = null;
let altMediaSnapshot = null;
let auditedRecord = null;
let relatedRecords = null;
let audit = null;
let usedBy = null;
Expand Down Expand Up @@ -155,6 +157,16 @@ export default function RecordSidebar(props) {
listType="audit"
/>
);
} else {
auditedRecord = (
<AuditedRecordPanelContainer
color={panelColor}
csid={csid}
columnSetName="narrow"
config={config}
name="auditedRecord"
/>
);
}

if (!isUtility) {
Expand Down Expand Up @@ -206,6 +218,7 @@ export default function RecordSidebar(props) {
{reports}
{batchJobs}
{audit}
{auditedRecord}
</div>
);
}
Expand Down

0 comments on commit fdede13

Please sign in to comment.