Group edit mode visibility dropdown

This commit is contained in:
Natsumi
2024-11-15 14:02:07 +13:00
parent cb3078e73b
commit 5540acce2d
4 changed files with 104 additions and 44 deletions

View File

@@ -16935,7 +16935,9 @@ speechSynthesis.getVoices();
API.currentUserGroups.clear();
args.json.forEach((group) => {
var ref = API.applyGroup(group);
API.currentUserGroups.set(group.id, ref);
if (!API.currentUserGroups.has(group.id)) {
API.currentUserGroups.set(group.id, ref);
}
});
this.saveCurrentUserGroups();
}
@@ -16982,7 +16984,9 @@ speechSynthesis.getVoices();
API.currentUserGroups.clear();
for (var group of args.json) {
var ref = API.applyGroup(group);
API.currentUserGroups.set(group.id, ref);
if (!API.currentUserGroups.has(group.id)) {
API.currentUserGroups.set(group.id, ref);
}
}
await API.getGroupPermissions({ userId: API.currentUser.id });
this.saveCurrentUserGroups();