Skip to content

Commit

Permalink
Merge pull request #624 from 5sControl/615-4h-in-the-orders-view-the-…
Browse files Browse the repository at this point in the history
…selected-order-is-not-highlighted-when-you-click-on-it

fix: highlight selected order
  • Loading branch information
pkostukevich authored Aug 29, 2024
2 parents 471d0f1 + e4cda7b commit 167c615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/OrdersViewD3/components/VerticalTimeline.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const VerticalTimeline = ({
.on('mouseout', function (event, d) {
d3.select(this)
.select('rect')
.attr('opacity', selectOrder.length === 0 || d.orId === selectOrder ? 1 : 0.4)
.attr('opacity', selectOrder.length === 0 || d.orId == selectOrder ? 1 : 0.4)
.attr('fill', '#87BC45');
});
bars
Expand All @@ -260,10 +260,10 @@ const VerticalTimeline = ({
return y(parseDate(new Date(d.eTime), d)) - y(parseDate(new Date(d.sTime), d)) < 0
? 0
: (y(parseDate(new Date(d.eTime), d)) - y(parseDate(new Date(d.sTime), d))) /
dateArray.length;
dateArray.length;
})
.attr('fill', '#87BC45')
.attr('opacity', (d) => (selectOrder.length === 0 || d.orId === selectOrder ? 1 : 0.4))
.attr('opacity', (d) => (selectOrder.length === 0 || d.orId == selectOrder ? 1 : 0.4))
.attr('cursor', 'pointer')
.attr('z-index', 2);
});
Expand Down

0 comments on commit 167c615

Please sign in to comment.