File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
src/pages/identity/administration/deleted-items Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { Layout as DashboardLayout } from "/src/layouts/index.js" ;
2
2
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx" ;
3
- import RestoreFromTrashIcon from "@mui/icons-material/RestoreFromTrash " ;
3
+ import { RestoreFromTrash , Warning } from "@mui/icons-material" ;
4
4
5
5
const Page = ( ) => {
6
6
const pageTitle = "Deleted Items" ;
@@ -9,10 +9,20 @@ const Page = () => {
9
9
{
10
10
label : "Restore Object" ,
11
11
type : "POST" ,
12
- icon : < RestoreFromTrashIcon /> ,
12
+ icon : < RestoreFromTrash /> ,
13
13
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." ,
16
26
multiPost : false ,
17
27
} ,
18
28
] ;
You can’t perform that action at this time.
0 commit comments