mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 22:04:08 +02:00
Support server v1.4.0, multiple libraries, new static request routes
This commit is contained in:
+5
-3
@@ -6,6 +6,7 @@
|
||||
</div>
|
||||
<app-stream-container ref="streamContainer" />
|
||||
<modals-downloads-modal ref="downloadsModal" @selectDownload="selectDownload" @deleteDownload="deleteDownload" />
|
||||
<modals-libraries-modal />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -29,13 +30,16 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
connected(isConnected) {
|
||||
async connected(isConnected) {
|
||||
if (this.$route.name === 'connect') {
|
||||
if (isConnected) {
|
||||
this.$router.push('/')
|
||||
}
|
||||
}
|
||||
this.syncUserProgress()
|
||||
|
||||
// Load libraries
|
||||
this.$store.dispatch('libraries/load')
|
||||
},
|
||||
updateAudiobookProgressOnServer(audiobookProgress) {
|
||||
if (this.$server.socket) {
|
||||
@@ -363,8 +367,6 @@ export default {
|
||||
mounted() {
|
||||
if (!this.$server) return console.error('No Server')
|
||||
|
||||
console.log('Default Mounted')
|
||||
|
||||
this.$server.on('connected', this.connected)
|
||||
this.$server.on('initialStream', this.initialStream)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user