Skip to content

Commit

Permalink
Link to New Item: Prefix with Thing's label (#3034)
Browse files Browse the repository at this point in the history
Resolve #3032

Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng authored Jan 23, 2025
1 parent 7dd7f31 commit d203a02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default {
const defaultTags = (this.channel.defaultTags.length > 0) ? this.channel.defaultTags : this.channelType.tags
this.$set(this, 'newItem', {
name: newItemName,
label: this.channel.label || this.channelType.label,
label: this.thing.label + ' ' + (this.channel.label || this.channelType.label),
category: (this.channelType) ? this.channelType.category : '',
groupNames: [],
type: this.channel.itemType || 'Switch',
Expand Down

0 comments on commit d203a02

Please sign in to comment.