Skip to content

Commit

Permalink
Fix missing root semantic classes (e.g. Equipment) (#2024)
Browse files Browse the repository at this point in the history
Fixes #2003.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 authored Aug 19, 2023
1 parent db08504 commit db174ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bundles/org.openhab.ui/web/src/js/store/modules/semantics.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const actions = {
if (this.getters.apiEndpoint('tags')) {
api.get('/rest/tags')
.then((tags) => {
state.Locations = tags.filter(t => t.uid.startsWith('Location_')).map(t => t.name)
state.Equipment = tags.filter(t => t.uid.startsWith('Equipment_')).map(t => t.name)
state.Points = tags.filter(t => t.uid.startsWith('Point_')).map(t => t.name)
state.Properties = tags.filter(t => t.uid.startsWith('Property_')).map(t => t.name)
state.Locations = tags.filter(t => t.uid.startsWith('Location')).map(t => t.name)
state.Equipment = tags.filter(t => t.uid.startsWith('Equipment')).map(t => t.name)
state.Points = tags.filter(t => t.uid.startsWith('Point')).map(t => t.name)
state.Properties = tags.filter(t => t.uid.startsWith('Property')).map(t => t.name)
// Store i18n labels
Object.values(tags).forEach(t => {
if (t.label) {
Expand Down

0 comments on commit db174ed

Please sign in to comment.