diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-18 16:11:39 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-18 16:11:39 +1200 |
commit | 648d5fe1e4a0d92b79410572d386dac45b4e8d36 (patch) | |
tree | b5d7911e71da3ec95f32a2f2161f248266363cbe /web/app/view/edit/Attributes.js | |
parent | 13b12ad936020476f8911fde498a820f94115a79 (diff) | |
parent | 6c8e4716489bc5d05a0c7794ee1cee342de417e3 (diff) | |
download | trackermap-web-648d5fe1e4a0d92b79410572d386dac45b4e8d36.tar.gz trackermap-web-648d5fe1e4a0d92b79410572d386dac45b4e8d36.tar.bz2 trackermap-web-648d5fe1e4a0d92b79410572d386dac45b4e8d36.zip |
Merge pull request #467 from Abyss777/known_attributes
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' |