aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller/Root.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/controller/Root.js')
-rw-r--r--web/app/controller/Root.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 75c4531c..312fc157 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -27,7 +27,9 @@ Ext.define('Traccar.controller.Root', {
],
init: function () {
- var i, data, attribute, chartTypesStore = Ext.getStore('ReportChartTypes');
+ var i, data, attribute, chartTypesStore, maintenanceTypesStore;
+ chartTypesStore = Ext.getStore('ReportChartTypes');
+ maintenanceTypesStore = Ext.getStore('MaintenanceTypes');
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
data = Ext.getStore('PositionAttributes').getData().items;
for (i = 0; i < data.length; i++) {
@@ -43,6 +45,7 @@ Ext.define('Traccar.controller.Root', {
key: 'attribute.' + attribute.get('key'),
name: attribute.get('name')
});
+ maintenanceTypesStore.add(attribute);
}
}
},
@@ -110,6 +113,7 @@ Ext.define('Traccar.controller.Root', {
Ext.getStore('Drivers').load();
Ext.getStore('Geofences').load();
Ext.getStore('Calendars').load();
+ Ext.getStore('Maintenances').load();
Ext.getStore('ComputedAttributes').load();
Ext.getStore('AllCommandTypes').load();
Ext.getStore('Commands').load();