Skip to content

Commit 94ee3cb

Browse files
Merge pull request #4042 from Zacgoose/devices-actions-change
"recipientType" does not exist, conditional enable/disable device
2 parents aa5d654 + 32f800a commit 94ee3cb

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const Page = () => {
2727
},
2828
confirmText: "Are you sure you want to enable this device?",
2929
multiPost: false,
30+
condition: (row) => !row.accountEnabled,
3031
icon: <CheckCircleOutline />,
3132
},
3233
{
@@ -39,6 +40,7 @@ const Page = () => {
3940
},
4041
confirmText: "Are you sure you want to disable this device?",
4142
multiPost: false,
43+
condition: (row) => row.accountEnabled,
4244
icon: <Block />,
4345
},
4446
{
@@ -80,7 +82,7 @@ const Page = () => {
8082
simpleColumns={[
8183
"displayName",
8284
"accountEnabled",
83-
"recipientType",
85+
"trustType",
8486
"enrollmentType",
8587
"manufacturer",
8688
"model",

0 commit comments

Comments
 (0)