Also check localstorage for settings if not found in state.

This commit is contained in:
2020-02-21 22:58:49 +01:00
parent fc2c3664d9
commit 9d1ac56b9a

View File

@@ -71,8 +71,10 @@ export default {
return undefined
},
isPlexAuthenticated: (state) => {
let hasPlexId = state.settings['plex_userid']
return hasPlexId != undefined
const settings = state.settings || getLocalStorageByKey('settings')
const hasPlexId = settings['plex_userid']
return hasPlexId != null ? true : false
}
},
mutations: {