diff options
Diffstat (limited to 'web/app/view/ReportConfigController.js')
-rw-r--r-- | web/app/view/ReportConfigController.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/app/view/ReportConfigController.js b/web/app/view/ReportConfigController.js index c121c654..0ae7c0a4 100644 --- a/web/app/view/ReportConfigController.js +++ b/web/app/view/ReportConfigController.js @@ -35,13 +35,11 @@ Ext.define('Traccar.view.ReportConfigController', { Ext.create('Traccar.store.AllNotifications').load({ scope: this, callback: function (records, operation, success) { - var i, value, name, typeKey; + var i, value; if (success) { for (i = 0; i < records.length; i++) { value = records[i].get('type'); - typeKey = 'event' + value.charAt(0).toUpperCase() + value.slice(1); - name = Strings[typeKey]; - store.add({type: value, name: name}); + store.add({type: value, name: Traccar.app.getEventString(value)}); } } } |