|
9 | 9 | Password,
|
10 | 10 | PasswordOutlined,
|
11 | 11 | Key,
|
| 12 | + Edit, |
12 | 13 | Security,
|
13 | 14 | FindInPage,
|
14 | 15 | Shield,
|
@@ -69,6 +70,25 @@ const Page = () => {
|
69 | 70 | ],
|
70 | 71 | confirmText: "Select the User to set as the primary user for this device",
|
71 | 72 | },
|
| 73 | + { |
| 74 | + label: "Rename Device", |
| 75 | + type: "POST", |
| 76 | + icon: <Edit />, |
| 77 | + url: "/api/ExecDeviceAction", |
| 78 | + data: { |
| 79 | + GUID: "id", |
| 80 | + Action: "setDeviceName", |
| 81 | + }, |
| 82 | + confirmText: "Enter the new name for the device", |
| 83 | + fields: [ |
| 84 | + { |
| 85 | + type: "textField", |
| 86 | + name: "input", |
| 87 | + label: "New Device Name", |
| 88 | + required: true, |
| 89 | + }, |
| 90 | + ], |
| 91 | + }, |
72 | 92 | {
|
73 | 93 | label: "Sync Device",
|
74 | 94 | type: "POST",
|
@@ -180,19 +200,6 @@ const Page = () => {
|
180 | 200 | },
|
181 | 201 | confirmText: "Are you sure you want to generate logs and ship these to MEM?",
|
182 | 202 | },
|
183 |
| - /* |
184 |
| - { |
185 |
| - label: "Rename device", |
186 |
| - type: "POST", |
187 |
| - icon: null, |
188 |
| - url: "/api/ExecDeviceAction", |
189 |
| - data: { |
190 |
| - GUID: "id", |
191 |
| - Action: "setDeviceName", |
192 |
| - }, |
193 |
| - confirmText: "Enter the new name for the device", |
194 |
| - }, |
195 |
| - */ |
196 | 203 | {
|
197 | 204 | label: "Fresh Start (Remove user data)",
|
198 | 205 | type: "POST",
|
@@ -318,7 +325,11 @@ const Page = () => {
|
318 | 325 | return (
|
319 | 326 | <CippTablePage
|
320 | 327 | title={pageTitle}
|
321 |
| - apiUrl="/api/ListDevices" |
| 328 | + apiUrl="/api/ListGraphRequest" |
| 329 | + apiData={{ |
| 330 | + Endpoint: "deviceManagement/managedDevices", |
| 331 | + }} |
| 332 | + apiDataKey="Results" |
322 | 333 | actions={actions}
|
323 | 334 | queryKey={`MEMDevices-${tenantFilter}`}
|
324 | 335 | offCanvas={offCanvas}
|
|
0 commit comments