mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 08:29:10 -05:00
23 lines
488 B
JavaScript
23 lines
488 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import { loadState } from '@nextcloud/initial-state'
|
|
|
|
const state = {
|
|
serverData: loadState('settings', 'usersSettings', {}),
|
|
}
|
|
const mutations = {
|
|
setServerData(state, data) {
|
|
state.serverData = data
|
|
},
|
|
}
|
|
const getters = {
|
|
getServerData(state) {
|
|
return state.serverData
|
|
},
|
|
}
|
|
const actions = {}
|
|
|
|
export default { state, mutations, getters, actions }
|