diff options
Diffstat (limited to 'modern/src/DevicesList.js')
-rw-r--r-- | modern/src/DevicesList.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/DevicesList.js b/modern/src/DevicesList.js index cdb2a040..ee3cb02b 100644 --- a/modern/src/DevicesList.js +++ b/modern/src/DevicesList.js @@ -23,9 +23,8 @@ import ErrorIcon from '@material-ui/icons/Error'; import { devicesActions } from './store'; import EditCollectionView from './EditCollectionView'; import { useEffectAsync } from './reactHelper'; -import { formatBoolean, formatPercentage, getStatusColor } from './common/formatter'; +import { formatAlarm, formatBoolean, formatPercentage, getStatusColor } from './common/formatter'; import { useTranslation } from './LocalizationProvider'; -import { prefixString } from './common/stringUtils'; const useStyles = makeStyles((theme) => ({ list: { @@ -90,7 +89,7 @@ const DeviceRow = ({ data, index, style }) => { {position && ( <> {position.attributes.hasOwnProperty('alarm') && ( - <Tooltip title={`${t('eventAlarm')}: ${t(prefixString('alarm', position.attributes.alarm))}`}> + <Tooltip title={`${t('eventAlarm')}: ${formatAlarm(position.attributes.alarm, t)}`}> <IconButton size="small"> <ErrorIcon fontSize="small" className={classes.negative} /> </IconButton> |