Moved isPlexAuthenticated from movie component to userModule.
This commit is contained in:
@@ -182,6 +182,9 @@ export default {
|
||||
numberOfTorrentResults: () => {
|
||||
let numTorrents = store.getters['torrentModule/resultCount']
|
||||
return numTorrents !== null ? numTorrents + ' results' : null
|
||||
},
|
||||
isPlexAuthenticated: () => {
|
||||
return store.getters['userModule/isPlexAuthenticated']
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -69,6 +69,10 @@ export default {
|
||||
|
||||
ifMissingSettingsAndTokenExistsFetchSettings()
|
||||
return undefined
|
||||
},
|
||||
isPlexAuthenticated: (state) => {
|
||||
let hasPlexId = state.settings['plex_userid']
|
||||
return hasPlexId != undefined
|
||||
}
|
||||
},
|
||||
mutations: {
|
||||
@@ -101,4 +105,4 @@ export default {
|
||||
commit('SET_SETTINGS', settings)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user