From 64a0bf08dff064f0ff51c267ae73672e93d827b5 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Wed, 16 Apr 2025 10:21:56 +0200 Subject: [PATCH] Item edit: Relabel category to icon (#3149) Closes #3146. Changed label from "Category" to "Icon" to make usage more clear and make it consistent with the documentation. --------- Signed-off-by: Sebastian Gerber --- bundles/org.openhab.ui/web/src/components/item/item-form.vue | 2 +- .../org.openhab.ui/web/src/pages/settings/items/item-edit.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/components/item/item-form.vue b/bundles/org.openhab.ui/web/src/components/item/item-form.vue index 899e3bb3b..8e52f2954 100644 --- a/bundles/org.openhab.ui/web/src/components/item/item-form.vue +++ b/bundles/org.openhab.ui/web/src/components/item/item-form.vue @@ -52,7 +52,7 @@ -
diff --git a/bundles/org.openhab.ui/web/src/pages/settings/items/item-edit.vue b/bundles/org.openhab.ui/web/src/pages/settings/items/item-edit.vue index cdcbfdbfe..d57c6f10a 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/items/item-edit.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/items/item-edit.vue @@ -237,7 +237,7 @@ export default { const yamlObj = { label: this.item.label, type: this.item.type, - category: this.item.category || '', + icon: this.item.category || '', groupNames: this.item.groupNames || [], tags: this.item.tags // metadata: this.item.metadata @@ -257,7 +257,7 @@ export default { if (updatedItem.tags == null) updatedItem.tags = [] this.$set(this.item, 'label', updatedItem.label) this.$set(this.item, 'type', updatedItem.type) - this.$set(this.item, 'category', updatedItem.category) + this.$set(this.item, 'category', updatedItem.icon) this.$set(this.item, 'groupNames', updatedItem.groupNames) this.$set(this.item, 'groupType', updatedItem.groupType) this.$set(this.item, 'function', updatedItem.function)