Skip to content

Commit

Permalink
Merge pull request #128 from owncloud/remove_loadConfig
Browse files Browse the repository at this point in the history
Remove obsolete loadConfig
  • Loading branch information
dschmidt authored Jan 23, 2022
2 parents e98fdcc + d349500 commit edc8ef1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ui/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,15 @@ import { Hello_Greet } from './client/hello'
import axios from 'axios'

const state = {
config: null,
message: ''
}

const getters = {
config: state => state.config,
message: state => state.message,
getServerForJsClient: (state, getters, rootState, rootGetters) => rootGetters.configuration.server.replace(/\/$/, '')
}

const actions = {
// Used by ocis-web.
loadConfig ({ commit }, config) {
commit('LOAD_CONFIG', config)
},

submitName ({ commit, dispatch, getters, rootGetters }, value) {
injectAuthToken(rootGetters)
Hello_Greet({
Expand Down Expand Up @@ -53,10 +46,6 @@ const actions = {
const mutations = {
SET_MESSAGE (state, payload) {
state.message = payload
},

LOAD_CONFIG (state, config) {
state.config = config
}
}

Expand Down

0 comments on commit edc8ef1

Please sign in to comment.