From ac6dff3941a4cd865f5f9acfbc2ee0dfef4ed0f5 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Tue, 8 Apr 2025 22:19:48 +0200 Subject: [PATCH] Link add/edit: Fix config-sheet not properly re-rendered on profile type change (#3141) Previously, autocomplete for parameter text sometimes did not properly initialize due to receiving the old config descriptions of the previous profile type. This fixes this by making sure the config sheet is re-rendered when the new profile type config has been loaded. Signed-off-by: Florian Hotze --- .../web/src/pages/settings/things/link/link-add.vue | 2 +- .../web/src/pages/settings/things/link/link-edit.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/pages/settings/things/link/link-add.vue b/bundles/org.openhab.ui/web/src/pages/settings/things/link/link-add.vue index b2781e3e5..560cc7ace 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/things/link/link-add.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/things/link/link-add.vue @@ -219,8 +219,8 @@ export default { }) }, onProfileTypeChange (profileTypeUid) { + this.profileTypeConfiguration = null if (!profileTypeUid) { - this.profileTypeConfiguration = null this.currentProfileType = null return } diff --git a/bundles/org.openhab.ui/web/src/pages/settings/things/link/link-edit.vue b/bundles/org.openhab.ui/web/src/pages/settings/things/link/link-edit.vue index e6aca8b43..b6d1d8bbd 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/things/link/link-edit.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/things/link/link-edit.vue @@ -180,8 +180,8 @@ export default { } }, onProfileTypeChange (profileTypeUid) { + this.profileTypeConfiguration = null if (!profileTypeUid) { - this.profileTypeConfiguration = null this.currentProfileType = null return }