Adds page identifier to secion ID

This commit is contained in:
Alicia Sykes 2022-05-17 19:31:02 +01:00
parent 8c43442b39
commit 333ee83890
2 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,9 @@ const HomeMixin = {
modalOpen() { modalOpen() {
return this.$store.state.modalOpen; return this.$store.state.modalOpen;
}, },
pageId() {
return this.subPageInfo?.pageId ? this.subPageInfo.pageId : 'home';
},
}, },
data: () => ({ data: () => ({
searchValue: '', searchValue: '',

View File

@ -34,7 +34,7 @@
:title="section.name" :title="section.name"
:icon="section.icon || undefined" :icon="section.icon || undefined"
:displayData="getDisplayData(section)" :displayData="getDisplayData(section)"
:groupId="`section-${index}`" :groupId="`${pageId}-section-${index}`"
:items="filterTiles(section.items, searchValue)" :items="filterTiles(section.items, searchValue)"
:widgets="section.widgets" :widgets="section.widgets"
:searchTerm="searchValue" :searchTerm="searchValue"