Adds support for widgets in Minimal View

This commit is contained in:
Alicia Sykes
2021-12-27 22:41:21 +00:00
parent 9ab84195c2
commit 41d9ead46b
2 changed files with 25 additions and 2 deletions

View File

@@ -34,6 +34,7 @@
:icon="section.icon || undefined"
:groupId="`section-${index}`"
:items="filterTiles(section.items)"
:widgets="section.widgets"
:selected="selectedSection === index"
:showAll="!tabbedView"
itemSize="small"
@@ -104,7 +105,9 @@ export default {
else {
let itemsFound = true;
this.sections.forEach((section) => {
if (this.filterTiles(section.items).length > 0) itemsFound = false;
if (section.widgets || this.filterTiles(section.items).length > 0) {
itemsFound = false;
}
});
return itemsFound;
}