diff --git a/report-react/src/SavedReport.tsx b/report-react/src/SavedReport.tsx index de0740343..740d2dc13 100644 --- a/report-react/src/SavedReport.tsx +++ b/report-react/src/SavedReport.tsx @@ -20,7 +20,7 @@ import ScoreCard from './ScoreCard'; import SummScoreCard from './SummScoreCard'; import ReportChecklist from './report/ReportChecklist'; import ReportRules from './report/ReportRules'; -import { ComposedModal, ModalHeader, ModalBody, Grid, Column, Theme,Dropdown,MultiSelect} from '@carbon/react'; +import { ComposedModal, ModalHeader, ModalBody, Grid, Column, Theme,Dropdown,MultiSelect,CopyButton} from '@carbon/react'; import { UtilIssueReact } from "./util/UtilIssueReact"; import { Violation16,NeedsReview16,Recommendation16,ViewOff16 } from "./util/UtilImages"; import ReportElements from "./report/ReportElements"; @@ -75,6 +75,10 @@ export class SavedReport extends React.Component { + if(this.props.reportData) + navigator.clipboard.writeText(this.props.reportData.tabURL) + }; render() { @@ -173,10 +177,45 @@ const filteredReport = {
- -
{new Date(this.props.reportData.report.timestamp).toLocaleString()}
-
Scanned page: {this.props.reportData.tabURL}
-
+ +
+ {new Date(this.props.reportData.report.timestamp).toLocaleString()} +
+
+ {/* URL with ellipsis */} +
+ Scanned page:{" "} + {this.props.reportData.tabURL} +
+ + {/* Copy button */} + +
+
item.text==="Violations")} handleCardClick={this.handleCardClick}>