aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MapController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-16 09:22:37 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-16 09:22:37 +0500
commit6ca3cc23a271976769ab0c9121b095b98297f11d (patch)
tree60ee3fe11d2e176e815595d975b0912f944d0e9c /web/app/view/MapController.js
parentbe65a0cf787eb3f02d26b4223057ea34a75f5962 (diff)
downloadetbsa-traccar-web-6ca3cc23a271976769ab0c9121b095b98297f11d.tar.gz
etbsa-traccar-web-6ca3cc23a271976769ab0c9121b095b98297f11d.tar.bz2
etbsa-traccar-web-6ca3cc23a271976769ab0c9121b095b98297f11d.zip
Fix update marker label on device name change
Diffstat (limited to 'web/app/view/MapController.js')
-rw-r--r--web/app/view/MapController.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index 13d3c8b..01cf7f4 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -106,6 +106,10 @@ Ext.define('Traccar.view.MapController', {
this.getDeviceColor(device), device.get('category'));
marker.changed();
}
+ if (style.getText().getText() !== device.get('name')) {
+ style.getText().setText(device.get('name'));
+ marker.changed();
+ }
}
}
},