Update:Home screen server loading to not block local item access #708

This commit is contained in:
advplyr 2023-06-04 17:14:26 -05:00
parent d207e88e18
commit f3964dda17
5 changed files with 51 additions and 39 deletions

View file

@ -5,7 +5,7 @@
<Nuxt />
<div v-if="attemptingConnection" class="absolute top-0 left-0 z-50 w-full h-full flex items-center justify-center">
<ui-loading-indicator text="Connecting to server..." />
<ui-loading-indicator text="Connecting to server..." class="mt-9" />
</div>
</div>
<app-audio-player-container ref="streamContainer" />
@ -21,7 +21,6 @@
export default {
data() {
return {
attemptingConnection: false,
inittingLibraries: false,
hasMounted: false,
disconnectTime: 0
@ -72,6 +71,14 @@ export default {
},
currentLibraryId() {
return this.$store.state.libraries.currentLibraryId
},
attemptingConnection: {
get() {
return this.$store.state.attemptingConnection
},
set(val) {
this.$store.commit('setAttemptingConnection', val)
}
}
},
methods: {