diff --git a/bundles/org.openhab.ui/web/src/pages/settings/items/item-details.vue b/bundles/org.openhab.ui/web/src/pages/settings/items/item-details.vue index 33791c561d..42e8811654 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/items/item-details.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/items/item-details.vue @@ -19,7 +19,7 @@

{{ item.label }}

- {{ item.type === 'Group' ? `${item.type} (${item.groupType})` : item.type }} + {{ itemTypeDisplay }}
@@ -178,6 +178,10 @@ export default { return { store: this.$store.getters.trackedItems } + }, + itemTypeDisplay () { + if (this.item.type !== 'Group' || !this.item.groupType) return this.item.type + return `${this.item.type} (${this.item.groupType})` } }, methods: {