Skip to content

Commit e7deb88

Browse files
committed
Update device actions and remove unused offCanvas configuration
1 parent 519a67f commit e7deb88

File tree

1 file changed

+3
-22
lines changed
  • src/pages/identity/administration/devices

1 file changed

+3
-22
lines changed

src/pages/identity/administration/devices/index.js

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Page = () => {
1010
url: "/api/ExecDeviceDelete",
1111
data: {
1212
ID: "id",
13-
action: "Enable",
13+
action: "!Enable",
1414
},
1515
confirmText: "Are you sure you want to enable this device?",
1616
multiPost: false,
@@ -21,7 +21,7 @@ const Page = () => {
2121
url: "/api/ExecDeviceDelete",
2222
data: {
2323
ID: "id",
24-
action: "Disable",
24+
action: "!Disable",
2525
},
2626
confirmText: "Are you sure you want to disable this device?",
2727
multiPost: false,
@@ -42,31 +42,13 @@ const Page = () => {
4242
url: "/api/ExecDeviceDelete",
4343
data: {
4444
ID: "id",
45-
action: "Delete",
45+
action: "!Delete",
4646
},
4747
confirmText: "Are you sure you want to delete this device?",
4848
multiPost: false,
4949
},
5050
];
5151

52-
const offCanvas = {
53-
extendedInfoFields: [
54-
"accountEnabled",
55-
"displayName",
56-
"id",
57-
"recipientType",
58-
"enrollmentType",
59-
"manufacturer",
60-
"model",
61-
"operatingSystem",
62-
"operatingSystemVersion",
63-
"profileType",
64-
"createdDateTime",
65-
"approximateLastSignInDateTime",
66-
],
67-
actions: actions,
68-
};
69-
7052
return (
7153
<CippTablePage
7254
title={pageTitle}
@@ -78,7 +60,6 @@ const Page = () => {
7860
}}
7961
apiDataKey="Results"
8062
actions={actions}
81-
offCanvas={offCanvas}
8263
simpleColumns={[
8364
"displayName",
8465
"accountEnabled",

0 commit comments

Comments
 (0)