Display device sensor information in the device info tab

This commit is contained in:
Starbeamrainbowlabs 2019-07-18 23:14:19 +01:00
parent 3e90c7cf8d
commit 10086bdb09
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -134,6 +134,14 @@ class LayerDeviceMarkers extends Emitter {
case "location":
value = `(${value[0]}, ${value[1]})`;
break;
case "sensors":
value = CreateElement("table",
...value.map((sensor) => CreateElement("tr",
CreateElement("td", sensor.type),
CreateElement("td", sensor.description)
))
);
break;
default: value = value.toString(); break;
}
}