aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/State.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-09-26 12:47:53 +0500
committerAbyss777 <abyss@fox5.ru>2016-09-26 12:47:53 +0500
commit6a1a261466fae6a6718cd3c0cb43b6061ec86fba (patch)
tree0e20861bcfe3b6df85e118671c4adb5f276e22ff /web/app/view/State.js
parent5ed0dc673f073078542aee35c21ac6e041545423 (diff)
downloadtrackermap-web-6a1a261466fae6a6718cd3c0cb43b6061ec86fba.tar.gz
trackermap-web-6a1a261466fae6a6718cd3c0cb43b6061ec86fba.tar.bz2
trackermap-web-6a1a261466fae6a6718cd3c0cb43b6061ec86fba.zip
- Renamed stores
- Removed 'alias' field from attribute model - Some optimizations - Fixed alarm colorizing
Diffstat (limited to 'web/app/view/State.js')
-rw-r--r--web/app/view/State.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/web/app/view/State.js b/web/app/view/State.js
index ddb9c0ea..7e9e235c 100644
--- a/web/app/view/State.js
+++ b/web/app/view/State.js
@@ -49,17 +49,13 @@ Ext.define('Traccar.view.State', {
columns: [{
text: Strings.stateName,
dataIndex: 'name',
- flex: 1,
- renderer: function (value, metaData, record) {
- var alias = record.get('alias');
- return alias !== '' ? alias : value;
- }
+ flex: 1
}, {
text: Strings.stateValue,
dataIndex: 'value',
flex: 1,
renderer: function (value, metaData, record) {
- if (record.get('name') === 'Alarm') {
+ if (record.get('attribute') === 'alarm') {
metaData.tdCls = 'view-color-red';
}
return value;