-
-
-
- {item.name === DefaultGroupName ? userInfo?.team.teamName : item.name}
-
- |
-
-
- |
-
- {/* Not self; Not owner and other manager */}
- {item.tmbId !== userInfo?.team?.tmbId &&
- (permission.isOwner || !item.permission.hasManagePer) && (
-
- }
- value={item.permission.role}
- onChange={(permission) => {
- onUpdate({
- members: item.tmbId ? [item.tmbId] : undefined,
- groups: item.groupId ? [item.groupId] : undefined,
- orgs: item.orgId ? [item.orgId] : undefined,
- permission
- });
- }}
- onDelete={() => {
- onDelete({
- tmbId: item.tmbId,
- groupId: item.groupId,
- orgId: item.orgId
- } as RequireOnlyOne<{
- tmbId: string;
- groupId: string;
- orgId: string;
- }>);
- }}
- />
- )}
- |
-
- );
- })}
-