Skip to content

Commit

Permalink
Merge pull request #3014 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 9b96053 + 0d207a9 commit 60b5a1b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
9 changes: 0 additions & 9 deletions accounts/ui/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { RoleService_ListRoles } from '../client/settings'
import { injectAuthToken } from '../helpers/auth'

const state = {
config: null,
initialized: false,
failed: false,
accounts: {},
Expand All @@ -19,7 +18,6 @@ const state = {
}

const getters = {
config: state => state.config,
isInitialized: state => state.initialized,
hasFailed: state => state.failed,
getAccountsSorted: state => {
Expand All @@ -36,9 +34,6 @@ const getters = {
}

const mutations = {
LOAD_CONFIG (state, config) {
state.config = config
},
SET_INITIALIZED (state, value) {
state.initialized = value
},
Expand Down Expand Up @@ -81,10 +76,6 @@ const mutations = {
}

const actions = {
loadConfig ({ commit }, config) {
commit('LOAD_CONFIG', config)
},

async initialize ({ commit, dispatch, getters }) {
await Promise.all([
dispatch('fetchAccounts'),
Expand Down
10 changes: 0 additions & 10 deletions settings/ui/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ import axios from 'axios'
import keyBy from 'lodash-es/keyBy'

const state = {
config: null,
initialized: false,
bundles: {}
}

const getters = {
config: state => state.config,
initialized: state => state.initialized,
extensions: state => {
return [...new Set(Object.values(state.bundles).map(bundle => bundle.extension))].sort()
Expand All @@ -35,18 +33,10 @@ const mutations = {
},
SET_BUNDLES (state, bundles) {
state.bundles = keyBy(bundles, 'id')
},
LOAD_CONFIG (state, config) {
state.config = config
}
}

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

async initialize ({ commit, dispatch }) {
await dispatch('fetchBundles')
commit('SET_INITIALIZED', true)
Expand Down

0 comments on commit 60b5a1b

Please sign in to comment.