mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-23 12:16:10 +02:00
Update:Show loading indicator when first connecting to server
This commit is contained in:
parent
d899fd4d89
commit
08ee08c698
4 changed files with 29 additions and 14 deletions
|
@ -269,13 +269,12 @@ export default {
|
|||
onReady() {
|
||||
// The UI is reporting elsewhere we are ready
|
||||
this.isReady = true
|
||||
|
||||
// TODO: iOS opens last active playback session on app launch. Should be consistent with Android
|
||||
if (this.isIos) {
|
||||
this.notifyOnReady()
|
||||
}
|
||||
this.notifyOnReady()
|
||||
},
|
||||
notifyOnReady() {
|
||||
// TODO: iOS opens last active playback session on app launch. Should be consistent with Android
|
||||
if (!this.isIos) return
|
||||
|
||||
// If settings aren't loaded yet, native player will receive incorrect settings
|
||||
console.log('Notify on ready... settingsLoaded:', this.settingsLoaded, 'isReady:', this.isReady)
|
||||
if (this.settingsLoaded && this.isReady && this.$store.state.isFirstAudioLoad) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue