diff options
author | Abyss777 <abyss@fox5.ru> | 2017-04-17 15:52:22 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-04-17 15:52:22 +0500 |
commit | 22b764a71a450e4f4e8ad1a0439cf708e6bcd952 (patch) | |
tree | 0a8a9a9ff650e92fbf86e225afa7ae8ba35601a7 /web/app/view/edit/Attributes.js | |
parent | fbe7831f7765d62853641750b85861b19a2a8715 (diff) | |
download | trackermap-web-22b764a71a450e4f4e8ad1a0439cf708e6bcd952.tar.gz trackermap-web-22b764a71a450e4f4e8ad1a0439cf708e6bcd952.tar.bz2 trackermap-web-22b764a71a450e4f4e8ad1a0439cf708e6bcd952.zip |
Translate known attributes
Diffstat (limited to 'web/app/view/edit/Attributes.js')
-rw-r--r-- | web/app/view/edit/Attributes.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/web/app/view/edit/Attributes.js b/web/app/view/edit/Attributes.js index 93e5a3a7..80083193 100644 --- a/web/app/view/edit/Attributes.js +++ b/web/app/view/edit/Attributes.js @@ -41,7 +41,14 @@ Ext.define('Traccar.view.edit.Attributes', { }, items: [{ text: Strings.sharedName, - dataIndex: 'name' + dataIndex: 'name', + renderer: function (value, metaData) { + var result; + if (this.attributesStore) { + result = Ext.getStore(this.attributesStore).getById(value); + } + return result && result.get('name') ? result.get('name') : value; + } }, { text: Strings.stateValue, dataIndex: 'value' |