Skip to content

Commit

Permalink
Merge 763eedb into a4b0678
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-h05 authored May 8, 2023
2 parents a4b0678 + 763eedb commit c2c93cd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default {
return prev
}, {})
} else {
return this.pages.reduce((prev, page, i, things) => {
const typeGroups = this.pages.reduce((prev, page, i, things) => {
const type = this.getPageType(page).label
if (!prev[type]) {
prev[type] = []
Expand All @@ -190,6 +190,10 @@ export default {
return prev
}, {})
return Object.keys(typeGroups).sort().reduce((objEntries, key) => {
objEntries[key] = typeGroups[key]
return objEntries
}, {})
}
},
searchPlaceholder () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default {
return prev
}, {})
} else {
return filteredInbox.reduce((prev, entry, i, inbox) => {
const bindingGroups = filteredInbox.reduce((prev, entry, i, inbox) => {
const binding = entry.thingUID.split(':')[0]
if (!prev[binding]) {
prev[binding] = []
Expand All @@ -162,6 +162,10 @@ export default {
return prev
}, {})
return Object.keys(bindingGroups).sort().reduce((objEntries, key) => {
objEntries[key] = bindingGroups[key]
return objEntries
}, {})
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default {
return prev
}, {})
} else {
return this.things.reduce((prev, thing, i, things) => {
const bindingGroups = this.things.reduce((prev, thing, i, things) => {
const binding = thing.thingTypeUID.split(':')[0]
if (!prev[binding]) {
prev[binding] = []
Expand All @@ -172,6 +172,10 @@ export default {
return prev
}, {})
return Object.keys(bindingGroups).sort().reduce((objEntries, key) => {
objEntries[key] = bindingGroups[key]
return objEntries
}, {})
}
},
inboxCount () {
Expand Down

0 comments on commit c2c93cd

Please sign in to comment.