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!

πŸ› Fix page title not being applied (#1544)

Alicia Sykesd58cde69f638
diff --git a/src/mixins/HomeMixin.js b/src/mixins/HomeMixin.js
index ad24fd0b..aa58a316 100644
--- a/src/mixins/HomeMixin.js
+++ b/src/mixins/HomeMixin.js
@@ -34,13 +34,18 @@ const HomeMixin = {
data: () => ({
searchValue: '',
}),
- async mounted() {
- // await this.getConfigForRoute();
- },
watch: {
async $route() {
this.loadUpConfig();
},
+ pageInfo: {
+ handler(newPageInfo) {
+ if (newPageInfo && newPageInfo.title) {
+ document.title = newPageInfo.title;
+ }
+ },
+ immediate: true,
+ },
},
async created() {
this.loadUpConfig();