aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/store/users-settings.js
blob: 6e52b8ec0f5c35318043afbad0ee21c44a76ae77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * 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 }