aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/RouteReportPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/reports/RouteReportPage.js')
-rw-r--r--modern/src/reports/RouteReportPage.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index db514e8..02aab79 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -49,22 +49,31 @@ const RouteReportPage = () => {
width: theme.dimensions.columnWidthDate,
valueFormatter: ({ value }) => formatDate(value),
}, {
+ headerName: t('positionIgnition'),
+ field: 'ignition',
+ type: 'boolean',
+ width: theme.dimensions.columnWidthBoolean,
+ valueGetter: ({ row }) => row.attributes.ignition,
+ valueFormatter: ({ value }) => formatBoolean(value, t),
+ }, {
headerName: t('positionLatitude'),
field: 'latitude',
type: 'number',
+ hide: true,
width: theme.dimensions.columnWidthNumber,
valueFormatter: ({ value }) => formatCoordinate('latitude', value, coordinateFormat),
}, {
headerName: t('positionLongitude'),
field: 'longitude',
type: 'number',
+ hide: true,
width: theme.dimensions.columnWidthNumber,
valueFormatter: ({ value }) => formatCoordinate('longitude', value, coordinateFormat),
}, {
headerName: t('positionSpeed'),
field: 'speed',
type: 'number',
- width: theme.dimensions.columnWidthString,
+ width: theme.dimensions.columnWidthNumber,
valueFormatter: ({ value }) => formatSpeed(value, speedUnit, t),
}, {
headerName: t('positionAddress'),
@@ -72,13 +81,6 @@ const RouteReportPage = () => {
type: 'string',
width: theme.dimensions.columnWidthString,
}, {
- headerName: t('positionIgnition'),
- field: 'ignition',
- type: 'boolean',
- width: theme.dimensions.columnWidthBoolean,
- valueGetter: ({ row }) => row.attributes.ignition,
- valueFormatter: ({ value }) => formatBoolean(value, t),
- }, {
headerName: t('deviceTotalDistance'),
field: 'totalDistance',
type: 'number',