fix(settings): Preserve system groups on reset

Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
Christopher Ng 2025-03-25 14:31:45 -07:00
parent e2c2419f42
commit 06dbcde4bf

View file

@ -232,7 +232,12 @@ const mutations = {
* @param {object} state the store state
*/
resetGroups(state) {
state.groups = [...usersSettings.systemGroups]
const systemGroups = state.groups.filter(group => [
'admin',
'__nc_internal_recent',
'disabled',
].includes(group.id))
state.groups = [...systemGroups]
},
setShowConfig(state, { key, value }) {