Skip to content

Commit 95d5395

Browse files
authored
Make semantics not editable from metadata editor (#3924)
Semantics metadata is (correctly) excluded from the Metadata section menu on the Items page. However, you can still use 'Add Metadata' and manually type 'semantics' as custom namespace. If there was no semantics metadata, that enables you to add semantics metadata to the managed provider. This makes the semantics namespace non-editable in the editor. Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
1 parent e86dda1 commit 95d5395

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bundles/org.openhab.ui/web/src/pages/settings/items/metadata/item-metadata-edit.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export default {
165165
}
166166
},
167167
editable () {
168+
if (this.namespace === 'semantics') return false
168169
return this.metadata.editable !== false
169170
}
170171
},

0 commit comments

Comments
 (0)