aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/ReportConfigController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-22 06:28:52 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-22 06:28:52 +1300
commit1ffa5a058a4cf84f23663bef2f14608059789f40 (patch)
tree9b1181eea0b9484a07fa48a8cc1f2c528d1e0629 /web/app/view/ReportConfigController.js
parent6b0e967b5156071c3c0ad777af96a1c7e7ebc2de (diff)
downloadtrackermap-web-1ffa5a058a4cf84f23663bef2f14608059789f40.tar.gz
trackermap-web-1ffa5a058a4cf84f23663bef2f14608059789f40.tar.bz2
trackermap-web-1ffa5a058a4cf84f23663bef2f14608059789f40.zip
Add unknown status notification
Diffstat (limited to 'web/app/view/ReportConfigController.js')
-rw-r--r--web/app/view/ReportConfigController.js6
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)});
}
}
}