Add:Send ebook to device button #909

This commit is contained in:
advplyr 2023-11-02 16:10:55 -05:00
parent 04e468b43d
commit fc7af6d1fc
5 changed files with 58 additions and 4 deletions

View file

@ -400,12 +400,13 @@ export default {
this.setUserAndConnection(payload)
}
},
async setUserAndConnection({ user, userDefaultLibraryId, serverSettings }) {
async setUserAndConnection({ user, userDefaultLibraryId, serverSettings, ereaderDevices }) {
if (!user) return
console.log('Successfully logged in', JSON.stringify(user))
this.$store.commit('setServerSettings', serverSettings)
this.$store.commit('libraries/setEReaderDevices', ereaderDevices)
// Set library - Use last library if set and available fallback to default user library
var lastLibraryId = await this.$localStore.getLastLibraryId()