aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-06-26 12:00:15 +0500
committerAbyss777 <abyss@fox5.ru>2018-06-26 13:55:11 +0500
commit17157262fef1c046d116b2270f4e1d335fe9da1b (patch)
tree751583dde65b666e4ab249b26010b7bec6f279b6 /web/app/Application.js
parentd67213556dcc87453c0ad5cd6f9e8851c477a2f3 (diff)
downloadetbsa-traccar-web-17157262fef1c046d116b2270f4e1d335fe9da1b.tar.gz
etbsa-traccar-web-17157262fef1c046d116b2270f4e1d335fe9da1b.tar.bz2
etbsa-traccar-web-17157262fef1c046d116b2270f4e1d335fe9da1b.zip
Implement refactored notifications
Diffstat (limited to 'web/app/Application.js')
-rw-r--r--web/app/Application.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index cef03d5..fe92039 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -108,7 +108,8 @@ Ext.define('Traccar.Application', {
'Maintenances',
'AllMaintenances',
'MaintenanceTypes',
- 'HoursUnits'
+ 'HoursUnits',
+ 'AllNotificators'
],
controllers: [
@@ -128,6 +129,11 @@ Ext.define('Traccar.Application', {
return Strings[key] || key;
},
+ getNotificatorString: function (eventType) {
+ var key = 'notification' + eventType.charAt(0).toUpperCase() + eventType.slice(1);
+ return Strings[key] || key;
+ },
+
showReports: function (show) {
var rootPanel = Ext.getCmp('rootPanel');
if (rootPanel) {