aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/DeviceAttributes.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-20 22:05:49 +1200
committerGitHub <noreply@github.com>2017-04-20 22:05:49 +1200
commit9a4bd28bec0cdb05a39e1f66be7df7a287f98a80 (patch)
tree89fb17d5ac9a8d703869e0b8ee5351062ae77cc5 /web/app/store/DeviceAttributes.js
parent5d35a71af8642dc23cc230efc7d3fca8705efe13 (diff)
parent2c4c52a8d925de24c004db7ec01479c27e507f1d (diff)
downloadtrackermap-web-9a4bd28bec0cdb05a39e1f66be7df7a287f98a80.tar.gz
trackermap-web-9a4bd28bec0cdb05a39e1f66be7df7a287f98a80.tar.bz2
trackermap-web-9a4bd28bec0cdb05a39e1f66be7df7a287f98a80.zip
Merge pull request #470 from Abyss777/known_attribute_conversion
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,