File tree Expand file tree Collapse file tree
bundles/org.openhab.ui/web/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 <group-form ref =" groupForm" v-if =" itemType === 'Group'" :item =" item" :createMode =" createMode" />
5353 </f7-list-group >
5454 <f7-list-group v-if =" !hideCategory" >
55- <f7-list-input ref =" category" label =" Category " autocomplete =" off" type =" text" placeholder =" temperature, firstfloor..." :value =" itemCategory"
55+ <f7-list-input ref =" category" label =" Icon " autocomplete =" off" type =" text" placeholder =" temperature, firstfloor..." :value =" itemCategory"
5656 @input =" itemCategory = $event.target.value" :disabled =" !editable" :clear-button =" editable" >
5757 <div slot =" root-end" style =" margin-left : calc (35% + 14px )" >
5858 <oh-icon :icon =" itemCategory" :state =" (createMode || itemType === 'Image') ? null : item.state" height =" 32" width =" 32" />
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ export default {
237237 const yamlObj = {
238238 label: this .item .label ,
239239 type: this .item .type ,
240- category : this .item .category || ' ' ,
240+ icon : this .item .category || ' ' ,
241241 groupNames: this .item .groupNames || [],
242242 tags: this .item .tags
243243 // metadata: this.item.metadata
@@ -257,7 +257,7 @@ export default {
257257 if (updatedItem .tags == null ) updatedItem .tags = []
258258 this .$set (this .item , ' label' , updatedItem .label )
259259 this .$set (this .item , ' type' , updatedItem .type )
260- this .$set (this .item , ' category' , updatedItem .category )
260+ this .$set (this .item , ' category' , updatedItem .icon )
261261 this .$set (this .item , ' groupNames' , updatedItem .groupNames )
262262 this .$set (this .item , ' groupType' , updatedItem .groupType )
263263 this .$set (this .item , ' function' , updatedItem .function )
You can’t perform that action at this time.
0 commit comments