mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-25 18:51:37 +00:00
removed sso related code from client/store/index.js and renamed some functions in client/store/sso.js
This commit is contained in:
parent
27f498ffae
commit
53e6c9f913
2 changed files with 2 additions and 31 deletions
|
|
@ -58,13 +58,13 @@ export const getters = {
|
|||
}
|
||||
|
||||
export const actions = {
|
||||
updateUserSettings({ commit }, payload) {
|
||||
updateSSOSettings({ commit }, payload) {
|
||||
var updatePayload = {
|
||||
...payload
|
||||
}
|
||||
// Immediately update
|
||||
commit('setSSOSettings', updatePayload)
|
||||
return this.$axios.$patch('/api/sso/settings', updatePayload).then((result) => {
|
||||
return this.$axios.$patch('/api/SSOSettings', updatePayload).then((result) => {
|
||||
if (result.success) {
|
||||
commit('setSSOSettings', result.settings)
|
||||
return true
|
||||
|
|
@ -77,11 +77,6 @@ export const actions = {
|
|||
})
|
||||
},
|
||||
loadSSOSettings({ state, commit }) {
|
||||
return defaultSSOSettings
|
||||
if (state.collectionsLoaded) {
|
||||
console.log('Collections already loaded')
|
||||
return state.collections
|
||||
}
|
||||
|
||||
return this.$axios.$get('/api/collections').then((collections) => {
|
||||
commit('setCollections', collections)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue