aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-16 18:04:40 +1300
committerGitHub <noreply@github.com>2016-11-16 18:04:40 +1300
commit5418af40f15876c5c48ffdeec7797f171ae36018 (patch)
tree60ee3fe11d2e176e815595d975b0912f944d0e9c /web
parentbe65a0cf787eb3f02d26b4223057ea34a75f5962 (diff)
parent6ca3cc23a271976769ab0c9121b095b98297f11d (diff)
downloadtrackermap-web-5418af40f15876c5c48ffdeec7797f171ae36018.tar.gz
trackermap-web-5418af40f15876c5c48ffdeec7797f171ae36018.tar.bz2
trackermap-web-5418af40f15876c5c48ffdeec7797f171ae36018.zip
Merge pull request #320 from Abyss777/fix_device_name
Fix update marker label on device name change
Diffstat (limited to 'web')
-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 13d3c8bd..01cf7f46 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();
+ }
}
}
},