Thing actions: Respect action visibility (#2867)

Signed-off-by: Florian Hotze <dev@florianhotze.com>
pull/2871/head
Florian Hotze 2024-11-11 13:42:36 +01:00 committed by GitHub
parent 90210ae986
commit 549112b1bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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()