aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Devices.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-25 12:14:16 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-25 12:14:16 +1300
commit4fabe3d644f96b1477490f289adb39949523fa6d (patch)
tree18fc524a0123b4b6cfce59aff8f2e905615d7933 /web/app/view/Devices.js
parent49eeee0e2b73799d7b9ba1c70b4519d0561338c0 (diff)
downloadtrackermap-server-4fabe3d644f96b1477490f289adb39949523fa6d.tar.gz
trackermap-server-4fabe3d644f96b1477490f289adb39949523fa6d.tar.bz2
trackermap-server-4fabe3d644f96b1477490f289adb39949523fa6d.zip
Fix device tree display issues
Diffstat (limited to 'web/app/view/Devices.js')
-rw-r--r--web/app/view/Devices.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/Devices.js b/web/app/view/Devices.js
index e43dcd2bc..83d5eacd1 100644
--- a/web/app/view/Devices.js
+++ b/web/app/view/Devices.js
@@ -103,7 +103,7 @@ Ext.define('Traccar.view.Devices', {
dataIndex: 'lastUpdate',
flex: 1,
renderer: function (value, metaData, record) {
- if (record.get('leaf')) {
+ if (record.get('original') instanceof Traccar.model.Device) {
switch (record.get('status')) {
case 'online':
metaData.tdCls = 'status-color-online';