Merge branch 'master' of github.com:KevinMidboe/seasoned

This commit is contained in:
2020-02-25 12:09:45 +01:00
4 changed files with 41 additions and 7 deletions

View File

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