Skip to content

Commit

Permalink
fix(ui): blank login screen
Browse files Browse the repository at this point in the history
Fixes #3737
  • Loading branch information
robertsLando committed Jun 3, 2024
1 parent 632ca88 commit 478f1b6
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,22 +270,25 @@
</div>
<main style="height: 100%">
<v-main style="height: 100%">
<router-view
v-if="auth !== undefined && inited"
@import="importFile"
@export="exportConfiguration"
@showConfirm="confirm"
:socket="socket"
/>
<v-container v-else-if="auth !== undefined && !inited">
<!-- put some skeleton loaders while loading settings -->
<v-skeleton-loader
v-for="(s, i) in skeletons"
:key="`skeleton-${i}`"
:type="s"
:loading="true"
></v-skeleton-loader>
</v-container>
<template v-if="auth !== undefined">
<router-view
v-if="inited || !skeletons"
@import="importFile"
@export="exportConfiguration"
@showConfirm="confirm"
:socket="socket"
/>
<!-- put some skeleton loaders while fetching settings -->
<v-container v-else>
<v-skeleton-loader
v-for="(s, i) in skeletons"
:key="`skeleton-${i}`"
:type="s"
:loading="true"
></v-skeleton-loader>
</v-container>
</template>
<!-- Show loading splash screen while checking for auth -->
<v-row
style="height: 100%"
align="center"
Expand Down Expand Up @@ -489,7 +492,7 @@ export default {
case Routes.smartStart:
return ['table']
default:
return ['']
return null
}
},
pages() {
Expand Down

0 comments on commit 478f1b6

Please sign in to comment.