Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:zap: Adds page identifier to secion ID

Alicia Sykes333ee8389035
diff --git a/src/mixins/HomeMixin.js b/src/mixins/HomeMixin.js
index 5d15ee1d..74bf984a 100644
--- a/src/mixins/HomeMixin.js
+++ b/src/mixins/HomeMixin.js
@@ -26,6 +26,9 @@ const HomeMixin = {
modalOpen() {
return this.$store.state.modalOpen;
},
+ pageId() {
+ return this.subPageInfo?.pageId ? this.subPageInfo.pageId : 'home';
+ },
},
data: () => ({
searchValue: '',
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 01c02f75..a01da0f8 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -34,7 +34,7 @@
:title="section.name"
:icon="section.icon || undefined"
:displayData="getDisplayData(section)"
- :groupId="`section-${index}`"
+ :groupId="`${pageId}-section-${index}`"
:items="filterTiles(section.items, searchValue)"
:widgets="section.widgets"
:searchTerm="searchValue"