Skip to content

Commit

Permalink
feat: add new column for linking products
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Jun 15, 2020
1 parent 18476aa commit d5910d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/containers/Products/ProductListContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const ProductList: React.FunctionComponent<Props> = ({
'Allocation of Emissions': 'requires_emission_allocation',
Status: 'product_state',
'Ciip Benchmarked': 'is_ciip_product',
Link: null,
'Edit/View': null
};
const body = (
Expand Down
9 changes: 3 additions & 6 deletions app/containers/Products/ProductRowItemContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,7 @@ export const ProductRowItemComponent: React.FunctionComponent<Props> = ({
<td>
<OverlayTrigger
placement="bottom"
overlay={
<Tooltip id="link-product">
{product.productState === 'ARCHIVED' ? 'View' : 'Edit'} Link
Products
</Tooltip>
}
overlay={<Tooltip id="link-product">Link Products</Tooltip>}
>
<FontAwesomeIcon
className={
Expand All @@ -304,6 +299,8 @@ export const ProductRowItemComponent: React.FunctionComponent<Props> = ({
/>
</OverlayTrigger>
&emsp;
</td>
<td>
<OverlayTrigger
placement="bottom"
overlay={
Expand Down

0 comments on commit d5910d8

Please sign in to comment.