From 7602f7156ab78ec6b9d1029289997df76792f595 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Sat, 2 Nov 2024 02:26:57 +0100 Subject: [PATCH] Thing copy: Keep label (#2858) Signed-off-by: Florian Hotze --- .../web/src/pages/settings/things/add/thing-add.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui/web/src/pages/settings/things/add/thing-add.vue b/bundles/org.openhab.ui/web/src/pages/settings/things/add/thing-add.vue index 0b1153fcb..b8821cbfd 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/things/add/thing-add.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/things/add/thing-add.vue @@ -105,7 +105,7 @@ export default { } catch (e) { console.log('Cannot generate ID: ' + e) } - this.thing.label = this.thingType.label + if (!this.thingCopy) this.thing.label = this.thingType.label if (this.thingCopy) { if (this.thing.bridgeUID) this.thing.UID = [this.thing.thingTypeUID, this.thing.bridgeUID.substring(this.thing.bridgeUID.lastIndexOf(':') + 1), this.thing.ID].join(':')