removed sso related code from client/store/index.js and renamed some functions in client/store/sso.js

This commit is contained in:
David Leimroth 2022-02-07 17:05:12 +01:00
parent 27f498ffae
commit 53e6c9f913
2 changed files with 2 additions and 31 deletions

View file

@ -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)