aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/ReportController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-08 12:04:28 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-08 12:04:28 +1300
commit11c8c039cc8c5a1948281f410bdb440d5a9f1608 (patch)
treec10465b8dc779fbc24da7e0038d555bf16d9b23e /web/app/view/ReportController.js
parent0c68417e4a15051240cd724bb5f12fe0fc39c1de (diff)
downloadtrackermap-web-11c8c039cc8c5a1948281f410bdb440d5a9f1608.tar.gz
trackermap-web-11c8c039cc8c5a1948281f410bdb440d5a9f1608.tar.bz2
trackermap-web-11c8c039cc8c5a1948281f410bdb440d5a9f1608.zip
Specify min width for columns
Diffstat (limited to 'web/app/view/ReportController.js')
-rw-r--r--web/app/view/ReportController.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 67fcf121..224a2a86 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -227,58 +227,48 @@ Ext.define('Traccar.view.ReportController', {
routeColumns: [{
text: Strings.positionValid,
dataIndex: 'valid',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('valid')
}, {
text: Strings.positionFixTime,
dataIndex: 'fixTime',
- flex: 1,
xtype: 'datecolumn',
renderer: Traccar.AttributeFormatter.getFormatter('fixTime')
}, {
text: Strings.positionLatitude,
dataIndex: 'latitude',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('latitude')
}, {
text: Strings.positionLongitude,
dataIndex: 'longitude',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('latitude')
}, {
text: Strings.positionAltitude,
dataIndex: 'altitude',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('altitude')
}, {
text: Strings.positionSpeed,
dataIndex: 'speed',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('speed')
}, {
text: Strings.positionAddress,
dataIndex: 'address',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('address')
}],
eventsColumns: [{
text: Strings.positionFixTime,
dataIndex: 'serverTime',
- flex: 1,
xtype: 'datecolumn',
renderer: Traccar.AttributeFormatter.getFormatter('serverTime')
}, {
text: Strings.reportDeviceName,
dataIndex: 'deviceId',
- flex: 1,
renderer: function (value) {
return Ext.getStore('Devices').findRecord('id', value).get('name');
}
}, {
text: Strings.sharedType,
dataIndex: 'type',
- flex: 1,
renderer: function (value) {
var typeKey = 'event' + value.charAt(0).toUpperCase() + value.slice(1);
return Strings[typeKey];
@@ -286,7 +276,6 @@ Ext.define('Traccar.view.ReportController', {
}, {
text: Strings.sharedGeofence,
dataIndex: 'geofenceId',
- flex: 1,
renderer: function (value) {
if (value !== 0) {
return Ext.getStore('Geofences').findRecord('id', value).get('name');
@@ -297,86 +286,70 @@ Ext.define('Traccar.view.ReportController', {
summaryColumns: [{
text: Strings.reportDeviceName,
dataIndex: 'deviceId',
- flex: 1,
renderer: function (value) {
return Ext.getStore('Devices').findRecord('id', value).get('name');
}
}, {
text: Strings.sharedDistance,
dataIndex: 'distance',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('distance')
}, {
text: Strings.reportAverageSpeed,
dataIndex: 'averageSpeed',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('speed')
}, {
text: Strings.reportMaximumSpeed,
dataIndex: 'maxSpeed',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('speed')
}, {
text: Strings.reportEngineHours,
dataIndex: 'engineHours',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('hours')
}],
tripsColumns: [{
text: Strings.reportDeviceName,
dataIndex: 'deviceId',
- flex: 1,
renderer: function (value) {
return Ext.getStore('Devices').findRecord('id', value).get('name');
}
}, {
text: Strings.reportStartTime,
dataIndex: 'startTime',
- flex: 1,
xtype: 'datecolumn',
renderer: Traccar.AttributeFormatter.getFormatter('startTime')
}, {
text: Strings.reportStartAddress,
dataIndex: 'startAddress',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('address')
}, {
text: Strings.reportEndTime,
dataIndex: 'endTime',
- flex: 1,
xtype: 'datecolumn',
renderer: Traccar.AttributeFormatter.getFormatter('endTime')
}, {
text: Strings.reportEndAddress,
dataIndex: 'endAddress',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('address')
}, {
text: Strings.sharedDistance,
dataIndex: 'distance',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('distance')
}, {
text: Strings.reportAverageSpeed,
dataIndex: 'averageSpeed',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('speed')
}, {
text: Strings.reportMaximumSpeed,
dataIndex: 'maxSpeed',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('speed')
}, {
text: Strings.reportDuration,
dataIndex: 'duration',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('duration')
}, {
text: Strings.reportSpentFuel,
dataIndex: 'spentFuel',
- flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('spentFuel')
}]
-
});