Skip to content

Commit

Permalink
Add email for soryBy param in request.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianliuwk1019 committed Dec 20, 2024
1 parent 8d9a584 commit bbf0cb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/components/ManagePermissionsTable/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ManagePermissionsTableEnum } from "@/types/ManagePermissionsTypes";
import type { PermissionNotificationType } from "@/types/NotificationTypes";
import { Severity } from "@/types/NotificationTypes";
import type { PaginationType } from "@/types/PaginationTypes";
import { formatAxiosError } from "@/utils/ApiUtils";
import { formatForestClientDisplayName } from "@/utils/ForestClientUtils";
import { formatUserNameAndId } from "@/utils/UserUtils";
Expand All @@ -14,7 +15,6 @@ import {
UserRoleSortByEnum,
type FamApplicationUserRoleAssignmentGetSchema,
} from "fam-app-acsctl-api/model";
import type { PaginationType } from "@/types/PaginationTypes";

export type ConfirmTextType = {
role: string;
Expand Down Expand Up @@ -302,6 +302,8 @@ export const sortFieldToEnum = (
return UserRoleSortByEnum.UserTypeCode;
case "user.first_name":
return UserRoleSortByEnum.FullName;
case "user.email":
return UserRoleSortByEnum.Email;
case "role.forest_client.forest_client_number":
return UserRoleSortByEnum.ForestClientNumber;
case "role.display_name":
Expand Down

0 comments on commit bbf0cb1

Please sign in to comment.