aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-04 14:38:49 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-04 14:38:49 +1300
commitc3f8353377eedecab9f3b973645e613c9ff2c80a (patch)
treef76a0c6f45457e4b3e14f150d3d51e61e8d599e9 /web/app/view/edit
parent46e9aa513032822ccfa6989d33c837dccc0f5299 (diff)
downloadtrackermap-web-c3f8353377eedecab9f3b973645e613c9ff2c80a.tar.gz
trackermap-web-c3f8353377eedecab9f3b973645e613c9ff2c80a.tar.bz2
trackermap-web-c3f8353377eedecab9f3b973645e613c9ff2c80a.zip
Alarm types filtering option
Diffstat (limited to 'web/app/view/edit')
-rw-r--r--web/app/view/edit/Notifications.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/web/app/view/edit/Notifications.js b/web/app/view/edit/Notifications.js
index 9e24d3d0..7983c4db 100644
--- a/web/app/view/edit/Notifications.js
+++ b/web/app/view/edit/Notifications.js
@@ -60,6 +60,23 @@ Ext.define('Traccar.view.edit.Notifications', {
renderer: Traccar.AttributeFormatter.getFormatter('always'),
filter: 'boolean'
}, {
+ text: Strings.sharedAlarms,
+ dataIndex: 'attributes',
+ renderer: function (value) {
+ var i, key, result = '', alarms = value && value['alarms'];
+ if (alarms) {
+ alarms = alarms.split(',');
+ for (i = 0; i < alarms.length; i++) {
+ var key = 'alarm' + alarms[i].charAt(0).toUpperCase() + alarms[i].slice(1);
+ if (result) {
+ result += ', ';
+ }
+ result += Strings[key] || key;
+ }
+ }
+ return result;
+ }
+ }, {
text: Strings.notificationNotificators,
dataIndex: 'notificators',
flex: 2,