File tree Expand file tree Collapse file tree 4 files changed +66
-4
lines changed
email/tools/mailbox-restores Expand file tree Collapse file tree 4 files changed +66
-4
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,7 @@ export const nativeMenuItems = [
250
250
{ title : "Protection Policies" , path : "/endpoint/MEM/list-appprotection-policies" } ,
251
251
{ title : "Apply Policy" , path : "/endpoint/MEM/add-policy" } ,
252
252
{ title : "Policy Templates" , path : "/endpoint/MEM/list-templates" } ,
253
+ { title : "Scripts" , path : "/endpoint/MEM/list-scripts" } ,
253
254
] ,
254
255
} ,
255
256
{
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const Page = () => {
16
16
icon : < PlayArrow /> ,
17
17
data : {
18
18
Identity : "Identity" ,
19
- Action : "Resume" ,
19
+ Action : "! Resume" ,
20
20
} ,
21
21
confirmText : "Are you sure you want to resume this restore request?" ,
22
22
color : "info" ,
@@ -28,7 +28,7 @@ const Page = () => {
28
28
icon : < Pause /> ,
29
29
data : {
30
30
Identity : "Identity" ,
31
- Action : "Suspend" ,
31
+ Action : "! Suspend" ,
32
32
} ,
33
33
confirmText : "Are you sure you want to suspend this restore request?" ,
34
34
color : "warning" ,
@@ -40,7 +40,7 @@ const Page = () => {
40
40
icon : < Delete /> ,
41
41
data : {
42
42
Identity : "Identity" ,
43
- Action : "Remove" ,
43
+ Action : "! Remove" ,
44
44
} ,
45
45
confirmText : "Are you sure you want to remove this restore request?" ,
46
46
color : "danger" ,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ const Page = () => {
60
60
} ,
61
61
{
62
62
label : "Delete Policy" ,
63
- type : "GET " ,
63
+ type : "POST " ,
64
64
url : "/api/RemovePolicy" ,
65
65
data : {
66
66
ID : "id" ,
Original file line number Diff line number Diff line change
1
+ import { Layout as DashboardLayout } from "/src/layouts/index.js" ;
2
+ import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx" ;
3
+ import { Code , TrashIcon } from "@heroicons/react/24/outline" ;
4
+
5
+ const Page = ( ) => {
6
+ const pageTitle = "Scripts" ;
7
+
8
+ const actions = [
9
+ {
10
+ label : "Delete Script" ,
11
+ type : "POST" ,
12
+ url : "/api/RemoveIntuneScript" ,
13
+ data : {
14
+ ID : "id" ,
15
+ displayName : "displayName" ,
16
+ ScriptType : "scriptType" ,
17
+ } ,
18
+ confirmText : "Are you sure you want to delete this script?" ,
19
+ icon : < TrashIcon /> ,
20
+ color : "danger" ,
21
+ } ,
22
+ ] ;
23
+
24
+ const offCanvas = {
25
+ extendedInfoFields : [
26
+ "scriptType" ,
27
+ "id" ,
28
+ "fileName" ,
29
+ "displayName" ,
30
+ "description" ,
31
+ "lastModifiedDateTime" ,
32
+ "runAsAccount" ,
33
+ "createdDateTime" ,
34
+ "runAs32Bit" ,
35
+ "executionFrequency" ,
36
+ "enforceSignatureCheck" ,
37
+ ] ,
38
+ actions : actions ,
39
+ } ;
40
+
41
+ const simpleColumns = [
42
+ "scriptType" ,
43
+ "displayName" ,
44
+ "description" ,
45
+ "runAsAccount" ,
46
+ "lastModifiedDateTime" ,
47
+ ] ;
48
+
49
+ return (
50
+ < CippTablePage
51
+ title = { pageTitle }
52
+ apiUrl = "/api/ListIntuneScript"
53
+ actions = { actions }
54
+ offCanvas = { offCanvas }
55
+ simpleColumns = { simpleColumns }
56
+ />
57
+ ) ;
58
+ } ;
59
+
60
+ Page . getLayout = ( page ) => < DashboardLayout allTenantsSupport = { false } > { page } </ DashboardLayout > ;
61
+ export default Page ;
You can’t perform that action at this time.
0 commit comments