Also check localstorage for settings if not found in state.
This commit is contained in:
@@ -71,8 +71,10 @@ export default {
|
|||||||
return undefined
|
return undefined
|
||||||
},
|
},
|
||||||
isPlexAuthenticated: (state) => {
|
isPlexAuthenticated: (state) => {
|
||||||
let hasPlexId = state.settings['plex_userid']
|
const settings = state.settings || getLocalStorageByKey('settings')
|
||||||
return hasPlexId != undefined
|
const hasPlexId = settings['plex_userid']
|
||||||
|
|
||||||
|
return hasPlexId != null ? true : false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
|
|||||||
Reference in New Issue
Block a user