Skip to content

Commit

Permalink
fix: Add email for "soryBy" param in request. (#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianliuwk1019 authored Dec 20, 2024
1 parent 8d9a584 commit 6aca894
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/AddPermissions/UserIdentityCard.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import Card from "primevue/card";
import CheckMarkFilledIcon from "@carbon/icons-vue/es/checkmark--filled/16";
import type { IdimProxyBceidInfoSchema } from "fam-app-acsctl-api";
import Card from "primevue/card";
import CardColumn from "@/components/CardColumn/index.vue";
import { formatUserNameAndId } from "@/utils/UserUtils";
Expand Down Expand Up @@ -47,7 +47,7 @@ const props = defineProps<{
props.userIdentity.email
"
:id="`user-card-email-${props.userIdentity.userId}`"
label="email"
label="Email"
:description="props.userIdentity.email"
class="col-auto"
/>
Expand Down
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 6aca894

Please sign in to comment.