diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-28 17:07:30 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 17:07:30 +1200 |
commit | ae4933c07d94d912cdea6944f5865567e12f525c (patch) | |
tree | b22c3a7f6acbc2bc28eafdae69f066cbd1ad9649 /web/app/Application.js | |
parent | d67213556dcc87453c0ad5cd6f9e8851c477a2f3 (diff) | |
parent | 8e69514733aace4690a9e80a6dd5158d625a66e2 (diff) | |
download | etbsa-traccar-web-ae4933c07d94d912cdea6944f5865567e12f525c.tar.gz etbsa-traccar-web-ae4933c07d94d912cdea6944f5865567e12f525c.tar.bz2 etbsa-traccar-web-ae4933c07d94d912cdea6944f5865567e12f525c.zip |
Merge pull request #686 from Abyss777/notifications_refactor
Implement refactored notifications
Diffstat (limited to 'web/app/Application.js')
-rw-r--r-- | web/app/Application.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/web/app/Application.js b/web/app/Application.js index cef03d5..d0b6713 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 = 'notificator' + eventType.charAt(0).toUpperCase() + eventType.slice(1); + return Strings[key] || key; + }, + showReports: function (show) { var rootPanel = Ext.getCmp('rootPanel'); if (rootPanel) { |