fix(ToolbarRow): Add i18n string for Series switcher (#634)
This commit is contained in:
parent
9055f19fb5
commit
1a9cfea365
@ -22,7 +22,7 @@
|
||||
const TOOLBAR_BUTTON_TYPES = {
|
||||
COMMAND: 'command',
|
||||
SET_TOOL_ACTIVE: 'setToolActive',
|
||||
BUILT_IN: 'builtIn'
|
||||
BUILT_IN: 'builtIn',
|
||||
};
|
||||
|
||||
const definitions = [
|
||||
|
||||
@ -140,6 +140,7 @@ function convertTimepointsToTableData(timepoints) {
|
||||
return [
|
||||
{
|
||||
label: 'Study date:',
|
||||
key: 'StudyDate',
|
||||
date: moment(timepoints[0].latestDate).format('DD-MMM-YY'),
|
||||
},
|
||||
];
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user