Thing actions: Respect action visibility (#2867)
Signed-off-by: Florian Hotze <dev@florianhotze.com>pull/2871/head
parent
90210ae986
commit
549112b1bb
|
@ -422,6 +422,7 @@ export default {
|
|||
loadThingActions () {
|
||||
return this.$oh.api.get('/rest/actions/' + this.thingId).then(data => {
|
||||
this.thingActions = data
|
||||
.filter((a) => a.visibility === 'VISIBLE')
|
||||
.filter((a) => a.inputConfigDescriptions !== undefined)
|
||||
.sort((a, b) => a.label.localeCompare(b.label))
|
||||
return Promise.resolve()
|
||||
|
|
Loading…
Reference in New Issue