aboutsummaryrefslogtreecommitdiff
path: root/modern/src/DevicesList.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/DevicesList.js')
-rw-r--r--modern/src/DevicesList.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/modern/src/DevicesList.js b/modern/src/DevicesList.js
index c51385ef..bcd6786a 100644
--- a/modern/src/DevicesList.js
+++ b/modern/src/DevicesList.js
@@ -24,7 +24,7 @@ import { devicesActions } from './store';
import EditCollectionView from './EditCollectionView';
import { useEffectAsync } from './reactHelper';
import {
- formatAlarm, formatBoolean, formatPercentage, getStatusColor,
+ formatAlarm, formatBoolean, formatPercentage, formatStatus, getStatusColor,
} from './common/formatter';
import { useTranslation } from './LocalizationProvider';
@@ -86,7 +86,11 @@ const DeviceRow = ({ data, index, style }) => {
<img className={classes.icon} src={`images/icon/${item.category || 'default'}.svg`} alt="" />
</Avatar>
</ListItemAvatar>
- <ListItemText primary={item.name} secondary={item.status} classes={{ secondary: classes[getStatusColor(item.status)] }} />
+ <ListItemText
+ primary={item.name}
+ secondary={formatStatus(item.status, t)}
+ classes={{ secondary: classes[getStatusColor(item.status)] }}
+ />
<ListItemSecondaryAction className={classes.indicators}>
{position && (
<>