diff options
author | Abyss777 <abyss@fox5.ru> | 2017-05-18 10:01:49 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-05-18 16:18:26 +0500 |
commit | 788a499b346724d753798597fb18f8aef17e1588 (patch) | |
tree | 07a29a92434aba956697360d6ef867ca1a328060 /web/app/view/permissions/UserAttributes.js | |
parent | 31187bc2a3ae41ab553a6472b7592895e3641fe8 (diff) | |
download | trackermap-web-788a499b346724d753798597fb18f8aef17e1588.tar.gz trackermap-web-788a499b346724d753798597fb18f8aef17e1588.tar.bz2 trackermap-web-788a499b346724d753798597fb18f8aef17e1588.zip |
Implement known position attributes
Diffstat (limited to 'web/app/view/permissions/UserAttributes.js')
-rw-r--r-- | web/app/view/permissions/UserAttributes.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/web/app/view/permissions/UserAttributes.js b/web/app/view/permissions/UserAttributes.js index 056c4634..8a8a4543 100644 --- a/web/app/view/permissions/UserAttributes.js +++ b/web/app/view/permissions/UserAttributes.js @@ -30,7 +30,15 @@ Ext.define('Traccar.view.permissions.UserAttributes', { text: Strings.sharedAttribute, dataIndex: 'attribute', flex: 1, - minWidth: Traccar.Style.columnWidthNormal + minWidth: Traccar.Style.columnWidthNormal, + renderer: function (value) { + var attribute = Ext.getStore('PositionAttributes').getById(value); + if (attribute) { + return attribute.get('name'); + } else { + return value; + } + } }] } }); |