Adds option for custom background image and footer

This commit is contained in:
Alicia Sykes
2021-05-04 19:43:42 +01:00
parent 2831391ad4
commit b44707ab3c
5 changed files with 27 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
<div id="dashy" data-theme="dark">
<Header :pageInfo="getPageInfo(pageInfo)" />
<router-view />
<Footer v-if="showFooter" />
<Footer v-if="showFooter" :text="getFooterText()" />
</div>
</template>
<script>
@@ -36,6 +36,12 @@ export default {
}
return defaults;
},
getFooterText() {
if (this.pageInfo && this.pageInfo.footerText) {
return this.pageInfo.footerText;
}
return '';
},
},
};
</script>