mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-25 01:42:00 +03:00
👔 Adds logic to show dialog on critical error
This commit is contained in:
parent
a138602670
commit
2ce3b29ad2
@ -3,8 +3,8 @@
|
|||||||
<EditModeTopBanner v-if="isEditMode" />
|
<EditModeTopBanner v-if="isEditMode" />
|
||||||
<LoadingScreen :isLoading="isLoading" v-if="shouldShowSplash" />
|
<LoadingScreen :isLoading="isLoading" v-if="shouldShowSplash" />
|
||||||
<Header :pageInfo="pageInfo" />
|
<Header :pageInfo="pageInfo" />
|
||||||
<CriticalError />
|
|
||||||
<router-view v-if="!isFetching" />
|
<router-view v-if="!isFetching" />
|
||||||
|
<CriticalError v-if="hasCriticalError" />
|
||||||
<Footer :text="footerText" v-if="visibleComponents.footer && !isFetching" />
|
<Footer :text="footerText" v-if="visibleComponents.footer && !isFetching" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -75,6 +75,9 @@ export default {
|
|||||||
isEditMode() {
|
isEditMode() {
|
||||||
return this.$store.state.editMode;
|
return this.$store.state.editMode;
|
||||||
},
|
},
|
||||||
|
hasCriticalError() {
|
||||||
|
return this.$store.state.criticalError;
|
||||||
|
},
|
||||||
subPageClassName() {
|
subPageClassName() {
|
||||||
const currentSubPage = this.$store.state.currentConfigInfo;
|
const currentSubPage = this.$store.state.currentConfigInfo;
|
||||||
return (currentSubPage && currentSubPage.pageId) ? currentSubPage.pageId : '';
|
return (currentSubPage && currentSubPage.pageId) ? currentSubPage.pageId : '';
|
||||||
|
Loading…
Reference in New Issue
Block a user