From 8271f8754fcba23a47576605b2dc7efa29ed84d0 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Tue, 29 Aug 2023 08:30:23 +0200 Subject: [PATCH] Fix add-ons missing from About Details (#2034) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is still using /bindings to get the data resulting in a 404 Not Found. The other pages were updated in #1468. Signed-off-by: Wouter Born Signed-off-by: Stefan Höhn --- bundles/org.openhab.ui/web/src/pages/about.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/pages/about.vue b/bundles/org.openhab.ui/web/src/pages/about.vue index 9818f0007f..93875cc995 100644 --- a/bundles/org.openhab.ui/web/src/pages/about.vue +++ b/bundles/org.openhab.ui/web/src/pages/about.vue @@ -129,7 +129,7 @@ export default { runtimeInfo: this.$store.state.runtimeInfo, locale: this.$store.getters.locale, systemInfo: this.systemInfo, - bindings: this.bindings, + addons: this.addons, clientInfo: { device: Object.assign({}, this.$device, { prefersColorScheme: this.$device.prefersColorScheme() }), isSecureContext: window.isSecureContext, @@ -157,7 +157,7 @@ export default { beforePageIn () { if (this.$store.getters.isAdmin) { this.$oh.api.get('/rest/systeminfo').then((data) => { this.systemInfo = data.systemInfo }) - this.$oh.api.get('/rest/bindings').then((data) => { this.bindings = data.map((b) => b.id).sort() }) + this.$oh.api.get('/rest/addons').then((data) => { this.addons = data.filter((a) => a.installed).map((a) => a.uid).sort() }) } if (navigator.serviceWorker) { navigator.serviceWorker.getRegistrations().then((registrations) => {