OHIF-311: Set nav arrows as active for all viewports (#1930)

This commit is contained in:
Igor Octaviano 2020-07-28 05:44:48 -03:00 committed by GitHub
parent 3d48a2a2c7
commit 4d1d73b89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

@ -427,7 +427,6 @@ function OHIFCornerstoneSRViewport({
}} }}
onSeriesChange={onMeasurementChange} onSeriesChange={onMeasurementChange}
onHydrationClick={hydrateMeasurementService} onHydrationClick={hydrateMeasurementService}
showNavArrows={viewportIndex === activeViewportIndex}
studyData={{ studyData={{
label, label,
isTracked: false, isTracked: false,
@ -448,8 +447,8 @@ function OHIFCornerstoneSRViewport({
spacing: spacing:
PixelSpacing && PixelSpacing.length PixelSpacing && PixelSpacing.length
? `${PixelSpacing[0].toFixed(2)}mm x ${PixelSpacing[1].toFixed( ? `${PixelSpacing[0].toFixed(2)}mm x ${PixelSpacing[1].toFixed(
2 2
)}mm` )}mm`
: '', : '',
scanner: ManufacturerModelName || '', scanner: ManufacturerModelName || '',
}, },

View File

@ -298,8 +298,6 @@ function TrackedCornerstoneViewport({
); );
} }
const showNavArrows = isTracked && viewportIndex === activeViewportIndex;
// TODO -> disabled double click for now: onDoubleClick={_onDoubleClick} // TODO -> disabled double click for now: onDoubleClick={_onDoubleClick}
return ( return (
@ -310,7 +308,6 @@ function TrackedCornerstoneViewport({
evt.preventDefault(); evt.preventDefault();
}} }}
onSeriesChange={direction => switchMeasurement(direction)} onSeriesChange={direction => switchMeasurement(direction)}
showNavArrows={showNavArrows}
studyData={{ studyData={{
label, label,
isTracked, isTracked,
@ -330,8 +327,8 @@ function TrackedCornerstoneViewport({
spacing: spacing:
PixelSpacing && PixelSpacing.length PixelSpacing && PixelSpacing.length
? `${PixelSpacing[0].toFixed(2)}mm x ${PixelSpacing[1].toFixed( ? `${PixelSpacing[0].toFixed(2)}mm x ${PixelSpacing[1].toFixed(
2 2
)}mm` )}mm`
: '', : '',
scanner: ManufacturerModelName || '', scanner: ManufacturerModelName || '',
}, },