Skip to content

Commit

Permalink
FIX: User dropdown not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
kris6673 committed Jan 16, 2025
1 parent 6720b29 commit aa998d8
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions src/pages/endpoint/autopilot/list-devices/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,35 @@ const Page = () => {
type: "POST",
url: "/api/ExecAssignAPDevice",
data: {
TenantFilter: "Tenant",
userid: "id",
message: "message",
Device: "id",
device: "id",
serialNumber: "serialNumber",
},
confirmText: "Select the user to assign",
modalDropdown: {
url: "/api/listUsers",
labelField: "userPrincipalName",
valueField: "id",
addedField: {
userPrincipalName: "userPrincipalName",
addressableUserName: "displayName",
groupName: "displayName",
confirmText: "Select the user to assign the device to",
fields: [
{
type: "autoComplete",
name: "user",
label: "Select User",
multiple: false,
creatable: false,
api: {
url: "/api/listUsers",
labelField: (user) => `${user.displayName} (${user.userPrincipalName})`,
valueField: "userPrincipalName",
addedField: {
userPrincipalName: "userPrincipalName",
addressableUserName: "displayName",
},
},
},
},
],
color: "info",
},
{
label: "Delete Device",
type: "POST",
url: "/api/RemoveAPDevice",
data: { ID: "id", tenantFilter: "Tenant" },
data: { ID: "id" },
confirmText: "Are you sure you want to delete this device?",
color: "danger",
},
Expand Down

0 comments on commit aa998d8

Please sign in to comment.