Skip to content

Commit

Permalink
Link AnalysisRunnerGrid to Billing, add copy to clipboard button.
Browse files Browse the repository at this point in the history
  • Loading branch information
milo-hyben committed Jun 20, 2024
1 parent c274e0c commit 66db350
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions web/src/pages/project/AnalysisRunnerView/AnalysisRunnerGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { Table as SUITable, Popup, Checkbox } from 'semantic-ui-react'
import { Table as SUITable, Popup, Checkbox, Button, Label, Icon } from 'semantic-ui-react'
import _, { Dictionary } from 'lodash'
import Table from '../../../shared/components/Table'
import sanitiseValue from '../../../shared/utilities/sanitiseValue'
Expand Down Expand Up @@ -56,13 +56,24 @@ const MAIN_FIELDS: IMainField[] = [
cursor: 'pointer',
}}
>
{log.arGuid.substring(0, 7)}
<a
href={`${`/billing/costByAnalysis?searchType=0&searchTxt=${log.arGuid}`}`}
rel="noopener noreferrer"
target="_blank"
>
{log.arGuid.substring(0, 7)}
</a>
</span>
}
hoverable
position="bottom center"
>
{log.arGuid}
<Button as="div" labelPosition="left">
<Label basic>{log.arGuid}</Label>
<Button icon onClick={() => navigator.clipboard.writeText(log.arGuid)}>
<Icon name="copy" />
</Button>
</Button>
</Popup>
),
},
Expand Down

0 comments on commit 66db350

Please sign in to comment.