aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller/Root.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-04-11 14:31:42 +0500
committerAbyss777 <abyss@fox5.ru>2018-04-19 12:15:59 +0500
commit19a9155d988dcee7698a65a45b0558aa0ff279d4 (patch)
treecea9ae5c73a625d01bc06df5742228b5cbbd1def /web/app/controller/Root.js
parent4e7d2b8fdb41390205d69997d61db536545f5564 (diff)
downloadetbsa-traccar-web-19a9155d988dcee7698a65a45b0558aa0ff279d4.tar.gz
etbsa-traccar-web-19a9155d988dcee7698a65a45b0558aa0ff279d4.tar.bz2
etbsa-traccar-web-19a9155d988dcee7698a65a45b0558aa0ff279d4.zip
Implement Maintenances
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 75c4531..312fc15 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();