# HG changeset patch # User drewp@bigasterisk.com # Date 2019-06-08 19:14:41 # Node ID 30cef362bf70d61355781dc7f70cde940fb9642e # Parent b76300a0229a349ae5130d75d0590456fd7afdbe support for hiding a dev from live view Ignore-this: feda54533430f85d451cd824985f3594 diff --git a/light9/web/live/live.coffee b/light9/web/live/live.coffee --- a/light9/web/live/live.coffee +++ b/light9/web/live/live.coffee @@ -468,6 +468,8 @@ coffeeElementSetup(class Light9LiveContr 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")