From 17157262fef1c046d116b2270f4e1d335fe9da1b Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 26 Jun 2018 12:00:15 +0500 Subject: Implement refactored notifications --- web/app/Application.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'web/app/Application.js') diff --git a/web/app/Application.js b/web/app/Application.js index cef03d51..fe920395 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) { -- cgit v1.2.3