[OHIF-278] Jumping to a measurement should set it to "active" in cornerstone-tools, highlighting it as green (#1888)

* Set cornerstone tool active when jumping to measurement.

* Remove debugger statement

* Also set active on left/right actionbar buttons.
This commit is contained in:
James Petts authored and GitHub committed 2020-07-10 15:38:40 -04:00
1 parent 3eba027003
commit 59003362c3
3 files changed
+38

No files matched your search

@@ -14,6 +14,7 @@ import { useTrackedMeasurements } from './../getContextModule';
import ViewportOverlay from './ViewportOverlay';
import ViewportLoadingIndicator from './ViewportLoadingIndicator';
import setCornerstoneMeasurementActive from '../_shared/setCornerstoneMeasurementActive';
const { formatDate } = utils;
@@ -272,6 +273,8 @@ function TrackedCornerstoneViewport({
m => m.id === newTrackedMeasurementId
);
setCornerstoneMeasurementActive(measurement);
const {
displaySetInstanceUID,
imageIndex,