Verified Commit f9eab4a8 authored by Gregory Stock's avatar Gregory Stock 🐈
Browse files

Add copy feature for private data

parent 91e21741
Pipeline #23511 passed with stages
in 1 minute and 54 seconds
......@@ -375,7 +375,19 @@ const LeaderboardPage: React.FC<{}> = () => {
<td>{ data.private && data.testResults && record.projectName ? <Fragment>
<OverlayTrigger trigger="click" placement="bottom" rootClose={true} overlay={<Popover id={`details-popover-${record.projectName}`} className="leaderboard-details-popover">
<Popover.Title>
{ record.projectName }
{ record.projectName }{' '}
<Button
variant="light"
size="sm"
onClick={() => {
if (data.testResults && record.projectName) {
const d = data.testResults[record.projectName];
navigator.clipboard.writeText(JSON.stringify(d, null, 4));
}
}}
>
📋
</Button>
</Popover.Title>
<Popover.Content>
<pre>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment