diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-29 14:06:40 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-29 14:06:40 +1200 |
commit | cd0c04a03b359dfc5b1ea3f61b93aaae8f6fec3e (patch) | |
tree | 8cd9c56d723b723cc3dae97234d9a1830adcf2d5 /web/app/view/State.js | |
parent | 88c95715221d78d834aef23a20be437eceee8006 (diff) | |
download | trackermap-server-cd0c04a03b359dfc5b1ea3f61b93aaae8f6fec3e.tar.gz trackermap-server-cd0c04a03b359dfc5b1ea3f61b93aaae8f6fec3e.tar.bz2 trackermap-server-cd0c04a03b359dfc5b1ea3f61b93aaae8f6fec3e.zip |
Change alarm highlight logic
Diffstat (limited to 'web/app/view/State.js')
-rw-r--r-- | web/app/view/State.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/web/app/view/State.js b/web/app/view/State.js index 1a9f014f5..547fb0cf3 100644 --- a/web/app/view/State.js +++ b/web/app/view/State.js @@ -34,6 +34,12 @@ Ext.define('Traccar.view.State', { }, { text: Strings.stateValue, dataIndex: 'value', - flex: 1 + flex: 1, + renderer: function (value, metaData, record) { + if (record.get('name') === 'Alarm') { + metaData.tdCls = 'view-color-red'; + } + return value; + } }] }); |