diff options
Diffstat (limited to 'web/app/store')
-rw-r--r-- | web/app/store/LatestPositions.js (renamed from web/app/store/LiveData.js) | 2 | ||||
-rw-r--r-- | web/app/store/TimeUnits.js | 18 |
2 files changed, 13 insertions, 7 deletions
diff --git a/web/app/store/LiveData.js b/web/app/store/LatestPositions.js index 35731e339..c656bdcb8 100644 --- a/web/app/store/LiveData.js +++ b/web/app/store/LatestPositions.js @@ -14,7 +14,7 @@ * limitations under the License. */ -Ext.define('Traccar.store.LiveData', { +Ext.define('Traccar.store.LatestPositions', { extend: 'Ext.data.Store', model: 'Traccar.model.Position' }); diff --git a/web/app/store/TimeUnits.js b/web/app/store/TimeUnits.js index 5d96f3b8b..047fd6016 100644 --- a/web/app/store/TimeUnits.js +++ b/web/app/store/TimeUnits.js @@ -16,10 +16,16 @@ Ext.define('Traccar.store.TimeUnits', { extend: 'Ext.data.Store', - fields: ['multiplier', 'name'], - data: [ - {'multiplier': 1, 'name': strings.sharedSecond}, - {'multiplier': 60, 'name': strings.sharedMinute}, - {'multiplier': 3600, 'name': strings.sharedHour} - ] + fields: ['name', 'factor'], + + data: [{ + name: strings.sharedSecond, + factor: 1 + }, { + name: strings.sharedMinute, + factor: 60 + }, { + name: strings.sharedHour, + factor: 3600 + }] }); |