From 7d82fdd1e7f3a84130a6267aadc3b024687371d9 Mon Sep 17 00:00:00 2001 From: Jimmy Tanagra Date: Mon, 13 Jan 2025 10:07:40 +1000 Subject: [PATCH] Thing Add: Validate Thing ID before saving Signed-off-by: Jimmy Tanagra --- .../thing/thing-general-settings.vue | 13 +++++-- .../web/src/components/thing/thing-mixin.js | 21 +++++++++++ .../pages/settings/things/add/thing-add.vue | 37 +++++++++++++------ 3 files changed, 56 insertions(+), 15 deletions(-) create mode 100644 bundles/org.openhab.ui/web/src/components/thing/thing-mixin.js diff --git a/bundles/org.openhab.ui/web/src/components/thing/thing-general-settings.vue b/bundles/org.openhab.ui/web/src/components/thing/thing-general-settings.vue index 0db5577a8b..729da814ee 100644 --- a/bundles/org.openhab.ui/web/src/components/thing/thing-general-settings.vue +++ b/bundles/org.openhab.ui/web/src/components/thing/thing-general-settings.vue @@ -7,7 +7,7 @@ + required :error-message="idErrorMessage" :error-message-force="!!idErrorMessage" /> {{ thing.UID }} @@ -43,9 +43,11 @@