Skip to content

Commit

Permalink
Fix add-on configuration (#1684)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <github@klug.nrw>
  • Loading branch information
J-N-K authored Feb 9, 2023
1 parent 193b01a commit 189cb5f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default {
})
if (this.configDescription && this.config) {
promises.push(this.$oh.api.put('/rest/addons/' + this.bindingId + '/config', this.config))
promises.push(this.$oh.api.put('/rest/addons/' + this.strippedAddonId + '/config' + (this.serviceId ? '?serviceId=' + this.serviceId : ''), this.config))
}
Promise.all(promises).then(() => {
Expand Down Expand Up @@ -120,8 +120,7 @@ export default {
if (configDescriptionURI) {
this.$oh.api.get('/rest/config-descriptions/' + configDescriptionURI).then(data2 => {
this.configDescription = data2
this.bindingId = configDescriptionURI.substring(configDescriptionURI.indexOf(':') + 1)
this.$oh.api.get('/rest/addons/' + this.bindingId + '/config').then(data3 => {
this.$oh.api.get('/rest/addons/' + this.strippedAddonId + '/config' + (this.serviceId ? '?serviceId=' + this.serviceId : '')).then(data3 => {
this.config = data3
})
})
Expand Down

0 comments on commit 189cb5f

Please sign in to comment.