From 93dce567dca7e0d3b0d814e8d6bcd52c3aa5073d Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Mon, 5 Feb 2024 21:15:09 +0100 Subject: [PATCH] Fix UoM metadata not stored when Item created from link (#2302) Fixes #2299. Also enhances the Item name validation when creating a new Item from the Items list. --------- Signed-off-by: Florian Hotze --- .../web/src/components/item/group-form.vue | 2 +- .../web/src/components/item/item-form.vue | 17 ++------- .../web/src/components/item/item-mixin.js | 38 ++++++++++++++----- .../web/src/components/model/item-details.vue | 4 +- .../src/pages/settings/items/item-edit.vue | 4 +- .../pages/settings/things/link/link-add.vue | 23 +++++------ 6 files changed, 48 insertions(+), 40 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 2cf78264d6..b3593a94d7 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 @@ -20,7 +20,7 @@ info="Used internally, for persistence and external systems. It is independent from the state visualization in the UI, which is defined through the state description." @input="item.unit = $event.target.value" clear-button />