Skip to content

Commit

Permalink
Thing details: Fix config action Thing config modification (openhab#2786
Browse files Browse the repository at this point in the history
)

Follow-up for openhab#2775.
Fixes openhab#2782.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Oct 1, 2024
1 parent e272807 commit e2c3c53
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -562,11 +562,10 @@ export default {
prompt,
this.thing.label,
() => {
const name = action.name
// Make sure Vue reactivity notices the change
this.$set(this.thing, 'configuration', ({
name: true,
...this.thing.configuration
...this.thing.configuration,
[action.name]: true
}))
// Vue reactivity is too slow to recognize config change before the API call, manually mark the config dirty
this.configDirty = true
Expand Down

0 comments on commit e2c3c53

Please sign in to comment.