diff --git a/extensions/ohif-cornerstone-extension/src/toolbarModule.js b/extensions/ohif-cornerstone-extension/src/toolbarModule.js index 3d2616359..1afc1c3a0 100644 --- a/extensions/ohif-cornerstone-extension/src/toolbarModule.js +++ b/extensions/ohif-cornerstone-extension/src/toolbarModule.js @@ -22,7 +22,7 @@ const TOOLBAR_BUTTON_TYPES = { COMMAND: 'command', SET_TOOL_ACTIVE: 'setToolActive', - BUILT_IN: 'builtIn' + BUILT_IN: 'builtIn', }; const definitions = [ diff --git a/src/appExtensions/MeasurementsPanel/ConnectedMeasurementTable.js b/src/appExtensions/MeasurementsPanel/ConnectedMeasurementTable.js index f443d49ee..59a789651 100644 --- a/src/appExtensions/MeasurementsPanel/ConnectedMeasurementTable.js +++ b/src/appExtensions/MeasurementsPanel/ConnectedMeasurementTable.js @@ -140,6 +140,7 @@ function convertTimepointsToTableData(timepoints) { return [ { label: 'Study date:', + key: 'StudyDate', date: moment(timepoints[0].latestDate).format('DD-MMM-YY'), }, ]; diff --git a/src/connectedComponents/ToolbarRow.js b/src/connectedComponents/ToolbarRow.js index 76de3c009..cf3de6b08 100644 --- a/src/connectedComponents/ToolbarRow.js +++ b/src/connectedComponents/ToolbarRow.js @@ -13,6 +13,7 @@ import ConnectedLayoutButton from './ConnectedLayoutButton'; import ConnectedPluginSwitch from './ConnectedPluginSwitch.js'; import { MODULE_TYPES } from 'ohif-core'; import PropTypes from 'prop-types'; +import { withTranslation } from 'react-i18next'; class ToolbarRow extends Component { // TODO: Simplify these? isOpen can be computed if we say "any" value for selected, @@ -53,7 +54,7 @@ class ToolbarRow extends Component { { value: 'studies', icon: 'th-large', - bottomLabel: 'Series', + bottomLabel: this.props.t('Series'), }, ], right: [], @@ -238,4 +239,4 @@ function _handleBuiltIn({ behavior } = {}) { } } -export default ToolbarRow; +export default withTranslation('Common')(ToolbarRow);