From e2c3c53d29d6f717f947712d8a759ecae54b07c9 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Tue, 1 Oct 2024 21:40:19 +0200 Subject: [PATCH] Thing details: Fix config action Thing config modification (#2786) Follow-up for #2775. Fixes #2782. Signed-off-by: Florian Hotze --- .../web/src/pages/settings/things/thing-details.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/pages/settings/things/thing-details.vue b/bundles/org.openhab.ui/web/src/pages/settings/things/thing-details.vue index 877bb19e1f..fbdffe889c 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/things/thing-details.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/things/thing-details.vue @@ -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