forked from baron/baron-sso
af 린트 적용
This commit is contained in:
@@ -231,10 +231,7 @@ export function TenantUserGroupsTab() {
|
||||
t("msg.admin.groups.list.delete_success", "그룹이 삭제되었습니다."),
|
||||
);
|
||||
groupsQuery.refetch();
|
||||
if (
|
||||
selectedGroupId &&
|
||||
selectedGroupId === deleteMutation.variables
|
||||
) {
|
||||
if (selectedGroupId && selectedGroupId === deleteMutation.variables) {
|
||||
setSelectedGroupId(null);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -96,7 +96,8 @@ export function UserGroupDetailPage() {
|
||||
});
|
||||
|
||||
const addMemberMutation = useMutation({
|
||||
mutationFn: (userId: string) => addGroupMember(tenantId ?? "", id ?? "", userId),
|
||||
mutationFn: (userId: string) =>
|
||||
addGroupMember(tenantId ?? "", id ?? "", userId),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ["user-group-detail", id] });
|
||||
setIsAddMemberOpen(false);
|
||||
@@ -115,7 +116,8 @@ export function UserGroupDetailPage() {
|
||||
});
|
||||
|
||||
const removeMemberMutation = useMutation({
|
||||
mutationFn: (userId: string) => removeGroupMember(tenantId ?? "", id ?? "", userId),
|
||||
mutationFn: (userId: string) =>
|
||||
removeGroupMember(tenantId ?? "", id ?? "", userId),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ["user-group-detail", id] });
|
||||
toast.success(
|
||||
@@ -129,7 +131,12 @@ export function UserGroupDetailPage() {
|
||||
|
||||
const assignRoleMutation = useMutation({
|
||||
mutationFn: () =>
|
||||
assignGroupRole(tenantId ?? "", id ?? "", selectedTargetTenantId, selectedRelation),
|
||||
assignGroupRole(
|
||||
tenantId ?? "",
|
||||
id ?? "",
|
||||
selectedTargetTenantId,
|
||||
selectedRelation,
|
||||
),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ["user-group-roles", id] });
|
||||
setIsAddRoleOpen(false);
|
||||
@@ -148,7 +155,12 @@ export function UserGroupDetailPage() {
|
||||
|
||||
const removeRoleMutation = useMutation({
|
||||
mutationFn: (role: { targetTenantId: string; relation: string }) =>
|
||||
removeGroupRole(tenantId ?? "", id ?? "", role.targetTenantId, role.relation),
|
||||
removeGroupRole(
|
||||
tenantId ?? "",
|
||||
id ?? "",
|
||||
role.targetTenantId,
|
||||
role.relation,
|
||||
),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ["user-group-roles", id] });
|
||||
toast.success(
|
||||
|
||||
Reference in New Issue
Block a user