Skip to content

Commit

Permalink
Fix add-ons missing from About Details (#2034)
Browse files Browse the repository at this point in the history
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 <github@maindrain.net>
(cherry-picked from commit 312aa0e)
  • Loading branch information
florian-h05 committed Aug 30, 2023
1 parent 12a1973 commit a7b436f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundles/org.openhab.ui/web/src/pages/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit a7b436f

Please sign in to comment.