aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/permissions/UserAttributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/permissions/UserAttributes.js')
-rw-r--r--web/app/view/permissions/UserAttributes.js10
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;
+ }
+ }
}]
}
});