Browse Source

fix(settings): Preserve system groups on reset

Signed-off-by: Christopher Ng <chrng8@gmail.com>
pull/51336/head
Christopher Ng 7 months ago
parent
commit
06dbcde4bf
  1. 7
      apps/settings/src/store/users.js

7
apps/settings/src/store/users.js

@ -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 }) {

Loading…
Cancel
Save