aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/command/CommandDialog.js2
-rw-r--r--web/app/view/map/MapController.js2
-rw-r--r--web/app/view/state/StateController.js4
3 files changed, 4 insertions, 4 deletions
diff --git a/web/app/view/command/CommandDialog.js b/web/app/view/command/CommandDialog.js
index e862b9076..8f567a74a 100644
--- a/web/app/view/command/CommandDialog.js
+++ b/web/app/view/command/CommandDialog.js
@@ -56,7 +56,7 @@ Ext.define('Traccar.view.command.CommandDialog', {
name: 'unit',
store: 'TimeUnits',
displayField: 'name',
- valueField: 'multiplier'
+ valueField: 'factor'
}]
}]
},
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js
index 0aab71725..b0d8b8f39 100644
--- a/web/app/view/map/MapController.js
+++ b/web/app/view/map/MapController.js
@@ -49,7 +49,7 @@ Ext.define('Traccar.view.map.MapController', {
var i;
for (i = 0; i < data.length; i++) {
- var store = Ext.getStore('LiveData');
+ var store = Ext.getStore('LatestPositions');
var found = store.query('deviceId', data[i].deviceId);
if (found.getCount() > 0) {
diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js
index bc125e529..23ac72db3 100644
--- a/web/app/view/state/StateController.js
+++ b/web/app/view/state/StateController.js
@@ -29,7 +29,7 @@ Ext.define('Traccar.view.state.StateController', {
},
init: function() {
- var store = Ext.getStore('LiveData');
+ var store = Ext.getStore('LatestPositions');
store.on('add', this.add, this);
store.on('update', this.update, this);
},
@@ -137,7 +137,7 @@ Ext.define('Traccar.view.state.StateController', {
selectDevice: function(device) {
this.deviceId = device.get('id');
- var found = Ext.getStore('LiveData').query('deviceId', this.deviceId);
+ var found = Ext.getStore('LatestPositions').query('deviceId', this.deviceId);
if (found.getCount() > 0) {
this.updatePosition(found.first());
} else {