diff options
Diffstat (limited to 'modern/src/StatusView.js')
-rw-r--r-- | modern/src/StatusView.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modern/src/StatusView.js b/modern/src/StatusView.js index ed0149ef..756a95a5 100644 --- a/modern/src/StatusView.js +++ b/modern/src/StatusView.js @@ -10,9 +10,13 @@ const StatusView = (props) => { return ( <> <b>{t('deviceStatus')}:</b> {formatter(device.status, 'status')}<br /> + <b>{t('sharedLocation')}:</b> {formatter(position, 'latitude')} {formatter(position, 'longitude')}<br /> <b>{t('positionSpeed')}:</b> {formatter(position.speed, 'speed')}<br /> <b>{t('positionCourse')}:</b> {formatter(position.course, 'course')}<br /> <b>{t('positionDistance')}:</b> {formatter(position.attributes.totalDistance, 'distance')}<br /> + {position.attributes.batteryLevel && + <><b>{t('positionBattery')}:</b> {formatter(position.attributes.batteryLevel, 'batteryLevel')}<br /></> + } </> ); }; |