Limit add-on settings menu list to bundles (#2217)

When installing rule templates or UI components or blockly libraries
from the marketplace, they get an entry in the add-on settings menu.
There is nothing that can be configured in these types of add-ons.
Therefore limit the list to bundles and features.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
pull/2220/head
Mark Herwege 2023-12-14 08:58:13 +01:00 committed by GitHub
parent f4773a7c86
commit da639e2f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ export default {
this.servicesLoaded = true
})
addonsPromise.then((data) => {
this.addonsInstalled = data.filter(a => a.installed === true)
this.addonsInstalled = data.filter(a => a.installed && !['application/vnd.openhab.ruletemplate', 'application/vnd.openhab.uicomponent;type=widget', 'application/vnd.openhab.uicomponent;type=blocks'].includes(a.contentType))
this.addonsLoaded = true
})
},