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!

πŸ‘” Adds logic to show dialog on critical error

Alicia Sykes2ce3b29ad23d
diff --git a/src/App.vue b/src/App.vue
index fbc3026f..a7529776 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -3,8 +3,8 @@
<EditModeTopBanner v-if="isEditMode" />
<LoadingScreen :isLoading="isLoading" v-if="shouldShowSplash" />
<Header :pageInfo="pageInfo" />
- <CriticalError />
<router-view v-if="!isFetching" />
+ <CriticalError v-if="hasCriticalError" />
<Footer :text="footerText" v-if="visibleComponents.footer && !isFetching" />
</div>
</template>
@@ -75,6 +75,9 @@ export default {
isEditMode() {
return this.$store.state.editMode;
},
+ hasCriticalError() {
+ return this.$store.state.criticalError;
+ },
subPageClassName() {
const currentSubPage = this.$store.state.currentConfigInfo;
return (currentSubPage && currentSubPage.pageId) ? currentSubPage.pageId : '';