v0.12.23 group manager display update

This commit is contained in:
2026-03-24 15:55:48 -04:00
parent 72094d7d15
commit e77176841c
5 changed files with 27 additions and 23 deletions

View File

@@ -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');
}