diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-16 18:04:40 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-16 18:04:40 +1300 |
commit | 5418af40f15876c5c48ffdeec7797f171ae36018 (patch) | |
tree | 60ee3fe11d2e176e815595d975b0912f944d0e9c /web/app/view | |
parent | be65a0cf787eb3f02d26b4223057ea34a75f5962 (diff) | |
parent | 6ca3cc23a271976769ab0c9121b095b98297f11d (diff) | |
download | etbsa-traccar-web-5418af40f15876c5c48ffdeec7797f171ae36018.tar.gz etbsa-traccar-web-5418af40f15876c5c48ffdeec7797f171ae36018.tar.bz2 etbsa-traccar-web-5418af40f15876c5c48ffdeec7797f171ae36018.zip |
Merge pull request #320 from Abyss777/fix_device_name
Fix update marker label on device name change
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/MapController.js | 4 |
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(); + } } } }, |