aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/State.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-11-08 15:04:43 +0500
committerAbyss777 <abyss@fox5.ru>2017-11-13 12:33:27 +0500
commitd93e45e176fc2cbba6525f100ef084d904baa1c1 (patch)
tree4b704e487600bda6c1604e39c1c1719962808525 /web/app/view/State.js
parentb36bb685ff31b06c7f50e660aebd3a69db5de5d7 (diff)
downloadetbsa-traccar-web-d93e45e176fc2cbba6525f100ef084d904baa1c1.tar.gz
etbsa-traccar-web-d93e45e176fc2cbba6525f100ef084d904baa1c1.tar.bz2
etbsa-traccar-web-d93e45e176fc2cbba6525f100ef084d904baa1c1.zip
Implement geocoding retry
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 32f9586..d4c56d7 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.stateShowAddress + '</a>';
}
return value;
}