diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-11-14 00:50:32 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-14 00:50:32 +1300 |
commit | 5f16db69f6cf531469dd1a96cab3b173697cdce6 (patch) | |
tree | 1a1558d294a2f0a7d018b9319c7ff17e87a6661b /web/app/view/State.js | |
parent | 76b715085f300d220b4714d2b56eb0aee059324e (diff) | |
parent | be7876d44dd63d9c7fc1b6e61f0caa01b1bb423e (diff) | |
download | trackermap-web-5f16db69f6cf531469dd1a96cab3b173697cdce6.tar.gz trackermap-web-5f16db69f6cf531469dd1a96cab3b173697cdce6.tar.bz2 trackermap-web-5f16db69f6cf531469dd1a96cab3b173697cdce6.zip |
Merge pull request #621 from Abyss777/retry_geocode
Add "Show Address" link in State panel
Diffstat (limited to 'web/app/view/State.js')
-rw-r--r-- | web/app/view/State.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/app/view/State.js b/web/app/view/State.js index 32f95861..95529a48 100644 --- a/web/app/view/State.js +++ b/web/app/view/State.js @@ -63,6 +63,9 @@ Ext.define('Traccar.view.State', { renderer: function (value, metaData, record) { if (record.get('attribute') === 'alarm') { metaData.tdCls = 'view-color-red'; + } else if (record.get('name') === Strings.positionAddress && !value) { + return '<a href="#" onclick="Ext.fireEvent(\'stategeocode\')" >' + + Strings.sharedShowAddress + '</a>'; } return value; } |