Merge pull request #1823 from OHIF/fix/minor-defects

fix: sort number of instances | format date in study panel
This commit is contained in:
Danny Brown authored and GitHub committed 2020-06-29 12:45:56 -04:00
commit 0594525301
9 files changed
+51 -18

No files matched your search

@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import cornerstone from 'cornerstone-core';
import cornerstoneTools from 'cornerstone-tools';
import CornerstoneViewport from 'react-cornerstone-viewport';
import OHIF, { DicomMetadataStore } from '@ohif/core';
import OHIF, { DicomMetadataStore, utils } from '@ohif/core';
import {
Notification,
ViewportActionBar,
@@ -12,6 +12,8 @@ import {
} from '@ohif/ui';
import { useTrackedMeasurements } from './../getContextModule';
const { formatDate } = utils;
// TODO -> Get this list from the list of tracked measurements.
const {
ArrowAnnotateTool,
@@ -239,7 +241,7 @@ function TrackedCornerstoneViewport({
label: _viewportLabels[firstViewportIndexWithMatchingDisplaySetUid],
isTracked: trackedSeries.includes(SeriesInstanceUID),
isLocked: false,
studyDate: SeriesDate, // TODO: This is series date. Is that ok?
studyDate: formatDate(SeriesDate), // TODO: This is series date. Is that ok?
currentSeries: SeriesNumber,
seriesDescription: SeriesDescription,
modality: Modality,