v0.12.23 group manager display update
This commit is contained in:
@@ -173,10 +173,10 @@ function UserForm({ user, userPass, allUserGroups, onDone, onCancel, isMobile, o
|
||||
});
|
||||
// Sync group memberships: add newly selected, remove deselected
|
||||
for (const gId of selectedGroupIds) {
|
||||
if (!origGroupIds.has(gId)) await api.addUserToGroup(gId, user.id).catch(() => {});
|
||||
if (!origGroupIds.has(gId)) await api.addUserToGroup(gId, user.id);
|
||||
}
|
||||
for (const gId of origGroupIds) {
|
||||
if (!selectedGroupIds.has(gId)) await api.removeUserFromGroup(gId, user.id).catch(() => {});
|
||||
if (!selectedGroupIds.has(gId)) await api.removeUserFromGroup(gId, user.id);
|
||||
}
|
||||
toast('User updated', 'success');
|
||||
} else {
|
||||
@@ -191,7 +191,7 @@ function UserForm({ user, userPass, allUserGroups, onDone, onCancel, isMobile, o
|
||||
});
|
||||
// Add to selected groups
|
||||
for (const gId of selectedGroupIds) {
|
||||
await api.addUserToGroup(gId, newUser.id).catch(() => {});
|
||||
await api.addUserToGroup(gId, newUser.id);
|
||||
}
|
||||
toast('User created', 'success');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user