From f5d9cb468acf435e81062fd5be94073c2c95e49a Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Wed, 13 Mar 2024 13:02:06 +0100 Subject: [PATCH] Item edit: Fix state description not saved for existing Item (#2474) Fixes #2468. Signed-off-by: Florian Hotze --- .../web/src/components/item/group-form.vue | 16 +++++++++++----- .../web/src/components/item/item-form.vue | 16 +++++++++++----- .../web/src/components/item/item-mixin.js | 8 +++++--- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/components/item/group-form.vue b/bundles/org.openhab.ui/web/src/components/item/group-form.vue index 5c72c45b96..ca541376cb 100644 --- a/bundles/org.openhab.ui/web/src/components/item/group-form.vue +++ b/bundles/org.openhab.ui/web/src/components/item/group-form.vue @@ -29,8 +29,8 @@ label="State Description Pattern" type="text" :info="(createMode) ? 'Pattern or transformation applied to the state for display purposes. Only saved if you change the pre-filled default value.' : ''" - :value="getStateDescription()" - @input="item.stateDescriptionPattern = $event.target.value" :clear-button:="editable" /> + :value="stateDescriptionPattern" + @input="stateDescriptionPattern = $event.target.value" :clear-button:="editable" />