Skip to content

Commit 9e41644

Browse files
Merge pull request #4094 from kris6673/feat-perma-delete-action
Feat: Add permanently delete action
2 parents 6c50c23 + f851ca8 commit 9e41644

File tree

1 file changed

+14
-4
lines changed
  • src/pages/identity/administration/deleted-items

1 file changed

+14
-4
lines changed

src/pages/identity/administration/deleted-items/index.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Layout as DashboardLayout } from "/src/layouts/index.js";
22
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
3-
import RestoreFromTrashIcon from "@mui/icons-material/RestoreFromTrash";
3+
import { RestoreFromTrash, Warning } from "@mui/icons-material";
44

55
const Page = () => {
66
const pageTitle = "Deleted Items";
@@ -9,10 +9,20 @@ const Page = () => {
99
{
1010
label: "Restore Object",
1111
type: "POST",
12-
icon: <RestoreFromTrashIcon />,
12+
icon: <RestoreFromTrash />,
1313
url: "/api/ExecRestoreDeleted",
14-
data: { ID: "id" },
15-
confirmText: "Are you sure you want to restore this user?",
14+
data: { ID: "id", userPrincipalName: "userPrincipalName", displayName: "displayName" },
15+
confirmText: "Are you sure you want to restore this object?",
16+
multiPost: false,
17+
},
18+
{
19+
label: "Permanently Delete Object",
20+
type: "POST",
21+
icon: <Warning />,
22+
url: "/api/RemoveDeletedObject",
23+
data: { ID: "id", userPrincipalName: "userPrincipalName", displayName: "displayName" },
24+
confirmText:
25+
"Are you sure you want to permanently delete this object? This action cannot be undone.",
1626
multiPost: false,
1727
},
1828
];

0 commit comments

Comments
 (0)