aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/State.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-11-14 00:50:32 +1300
committerGitHub <noreply@github.com>2017-11-14 00:50:32 +1300
commit5f16db69f6cf531469dd1a96cab3b173697cdce6 (patch)
tree1a1558d294a2f0a7d018b9319c7ff17e87a6661b /web/app/view/State.js
parent76b715085f300d220b4714d2b56eb0aee059324e (diff)
parentbe7876d44dd63d9c7fc1b6e61f0caa01b1bb423e (diff)
downloadtrackermap-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.js3
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;
}