aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/DeviceAttributes.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-04-19 14:17:11 +0500
committerAbyss777 <abyss@fox5.ru>2017-04-19 14:17:11 +0500
commit3810a8be84b010f6c26f7541be22ecd6a973af58 (patch)
treea266c3fad333c50d0c1361ccc358fd685625ea01 /web/app/store/DeviceAttributes.js
parent648d5fe1e4a0d92b79410572d386dac45b4e8d36 (diff)
downloadtrackermap-web-3810a8be84b010f6c26f7541be22ecd6a973af58.tar.gz
trackermap-web-3810a8be84b010f6c26f7541be22ecd6a973af58.tar.bz2
trackermap-web-3810a8be84b010f6c26f7541be22ecd6a973af58.zip
Convert speed and distance for known attributes
Diffstat (limited to 'web/app/store/DeviceAttributes.js')
-rw-r--r--web/app/store/DeviceAttributes.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/app/store/DeviceAttributes.js b/web/app/store/DeviceAttributes.js
index a4303546..8f476d4e 100644
--- a/web/app/store/DeviceAttributes.js
+++ b/web/app/store/DeviceAttributes.js
@@ -23,7 +23,8 @@ Ext.define('Traccar.store.DeviceAttributes', {
data: [{
key: 'speedLimit',
name: Strings.attributeSpeedLimit,
- type: 'number'
+ type: 'number',
+ convert: 'speed'
}, {
key: 'report.ignoreOdometer',
name: Strings.attributeReportIgnoreOdometer,
@@ -31,11 +32,13 @@ Ext.define('Traccar.store.DeviceAttributes', {
}, {
key: 'maintenance.start',
name: Strings.attributeMaintenanceStart,
- type: 'number'
+ type: 'number',
+ convert: 'distance'
}, {
key: 'maintenance.interval',
name: Strings.attributeMaintenanceInterval,
- type: 'number'
+ type: 'number',
+ convert: 'distance'
}, {
key: 'web.reportColor',
name: Strings.attributeWebReportColor,