diff --git a/ui/oce/corruption-risk/index.jsx b/ui/oce/corruption-risk/index.jsx index a03fe00e7..5ac5d222e 100644 --- a/ui/oce/corruption-risk/index.jsx +++ b/ui/oce/corruption-risk/index.jsx @@ -284,6 +284,7 @@ class CorruptionRiskDashboard extends React.Component { id={id} styling={styling} doSearch={query => navigate(plSlug, query)} + navigate={navigate} indicatorTypesMapping={indicatorTypesMapping} {...additionalProps} /> diff --git a/ui/oce/corruption-risk/procuring-entities/single/index.jsx b/ui/oce/corruption-risk/procuring-entities/single/index.jsx index de15b149d..d7dd1122c 100644 --- a/ui/oce/corruption-risk/procuring-entities/single/index.jsx +++ b/ui/oce/corruption-risk/procuring-entities/single/index.jsx @@ -47,7 +47,7 @@ class ProcuringEntity extends translatable(React.Component) { } render() { - const { translations, doSearch, width } = this.props; + const { translations, doSearch, width, navigate } = this.props; const { PEName } = this.state; return ( @@ -98,7 +98,10 @@ class ProcuringEntity extends translatable(React.Component) {

Procurements by {PEName}

- + ); diff --git a/ui/oce/corruption-risk/procuring-entities/single/table/index.jsx b/ui/oce/corruption-risk/procuring-entities/single/table/index.jsx index c6c5a2591..574f1a497 100644 --- a/ui/oce/corruption-risk/procuring-entities/single/table/index.jsx +++ b/ui/oce/corruption-risk/procuring-entities/single/table/index.jsx @@ -1,6 +1,7 @@ import translatable from '../../../../translatable'; import BootstrapTableWrapper from '../../../archive/bootstrap-table-wrapper'; import { procurementsData, page, pageSize, procurementsCount } from './state'; +import { mkContractLink } from '../../../tools'; const NAME = 'PEProcurementsComponent'; @@ -55,6 +56,7 @@ class Table extends translatable(React.PureComponent) { render() { const { data, count } = this.state; + const { navigate } = this.props; return ( raw.map(datum => { return { - id: datum.id, + id: datum.ocid, name: datum.tender.title || 'N/A', - ocid: datum.ocid, awardStatus: getAwardAmount(datum.awards) ? 'active' : 'unsuccessful', tenderAmount: getTenderAmount(datum), awardAmount: getAwardAmount(datum.awards),