Skip to content

Feat: Add permanently delete action #4094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions src/pages/identity/administration/deleted-items/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Layout as DashboardLayout } from "/src/layouts/index.js";
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
import RestoreFromTrashIcon from "@mui/icons-material/RestoreFromTrash";
import { RestoreFromTrash, Warning } from "@mui/icons-material";

const Page = () => {
const pageTitle = "Deleted Items";
Expand All @@ -9,10 +9,20 @@ const Page = () => {
{
label: "Restore Object",
type: "POST",
icon: <RestoreFromTrashIcon />,
icon: <RestoreFromTrash />,
url: "/api/ExecRestoreDeleted",
data: { ID: "id" },
confirmText: "Are you sure you want to restore this user?",
data: { ID: "id", userPrincipalName: "userPrincipalName", displayName: "displayName" },
confirmText: "Are you sure you want to restore this object?",
multiPost: false,
},
{
label: "Permanently Delete Object",
type: "POST",
icon: <Warning />,
url: "/api/RemoveDeletedObject",
data: { ID: "id", userPrincipalName: "userPrincipalName", displayName: "displayName" },
confirmText:
"Are you sure you want to permanently delete this object? This action cannot be undone.",
multiPost: false,
},
];
Expand Down
Loading