aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/Application.js')
-rw-r--r--web/app/Application.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index 6338506..d0b6713 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -42,7 +42,8 @@ Ext.define('Traccar.Application', {
'KnownAttribute',
'Driver',
'KnownCommand',
- 'KnownNotification'
+ 'KnownNotification',
+ 'Maintenance'
],
stores: [
@@ -103,7 +104,12 @@ Ext.define('Traccar.Application', {
'Commands',
'AllCommands',
'DeviceCommands',
- 'AllNotificationTypes'
+ 'AllNotificationTypes',
+ 'Maintenances',
+ 'AllMaintenances',
+ 'MaintenanceTypes',
+ 'HoursUnits',
+ 'AllNotificators'
],
controllers: [
@@ -123,6 +129,11 @@ Ext.define('Traccar.Application', {
return Strings[key] || key;
},
+ getNotificatorString: function (eventType) {
+ var key = 'notificator' + eventType.charAt(0).toUpperCase() + eventType.slice(1);
+ return Strings[key] || key;
+ },
+
showReports: function (show) {
var rootPanel = Ext.getCmp('rootPanel');
if (rootPanel) {