From 802d41284a87b79d0dd0bf7c6be62da8ae1d9703 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Sat, 28 Dec 2024 15:10:01 +0100 Subject: [PATCH] Thing details: Show error message when modifying disabled Thing (#2951) Do not fail silently. Fixes #1590. Signed-off-by: Florian Hotze --- .../web/src/pages/settings/things/thing-details.vue | 8 ++++++++ 1 file changed, 8 insertions(+) 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 35c515082d..9861d4a34c 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 @@ -550,6 +550,14 @@ export default { destroyOnClose: true, closeTimeout: 2000 }).open() + }).catch(err => { + if (err === 409 || err === 'Conflict') { + this.$f7.toast.create({ + text: 'Cannot modify configuration of uninitialized Thing', + destroyOnClose: true, + closeTimeout: 2000 + }).open() + } }) }, doThingAction (action) {