changeset 1984:30cef362bf70

support for hiding a dev from live view Ignore-this: feda54533430f85d451cd824985f3594
author drewp@bigasterisk.com
date Sat, 08 Jun 2019 19:14:41 +0000
parents b76300a0229a
children 47ef9c9efe38
files light9/web/live/live.coffee
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/light9/web/live/live.coffee	Sat Jun 08 19:13:39 2019 +0000
+++ b/light9/web/live/live.coffee	Sat Jun 08 19:14:41 2019 +0000
@@ -468,6 +468,8 @@
     newDevs = []
     for dc in @graph.sortedUris(@graph.subjects(U('rdf:type'), U(':DeviceClass')))
       for dev in @graph.sortedUris(@graph.subjects(U('rdf:type'), dc))
+        if @graph.contains(dev, U(':hideInLiveUi'), null)
+          continue
         newDevs.push({uri: dev})
 
     #log("controls update now has #{newDevs.length} devices")