Skip to content

Commit

Permalink
Merge pull request #72 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
[pull] dev from KelvinTegelaar:dev
  • Loading branch information
pull[bot] authored Feb 6, 2025
2 parents a3747a7 + 06213ce commit bd25acc
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/layouts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ export const nativeMenuItems = [
{ title: "Protection Policies", path: "/endpoint/MEM/list-appprotection-policies" },
{ title: "Apply Policy", path: "/endpoint/MEM/add-policy" },
{ title: "Policy Templates", path: "/endpoint/MEM/list-templates" },
{ title: "Scripts", path: "/endpoint/MEM/list-scripts" },
],
},
{
Expand Down
6 changes: 3 additions & 3 deletions src/pages/email/tools/mailbox-restores/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Page = () => {
icon: <PlayArrow />,
data: {
Identity: "Identity",
Action: "Resume",
Action: "!Resume",
},
confirmText: "Are you sure you want to resume this restore request?",
color: "info",
Expand All @@ -28,7 +28,7 @@ const Page = () => {
icon: <Pause />,
data: {
Identity: "Identity",
Action: "Suspend",
Action: "!Suspend",
},
confirmText: "Are you sure you want to suspend this restore request?",
color: "warning",
Expand All @@ -40,7 +40,7 @@ const Page = () => {
icon: <Delete />,
data: {
Identity: "Identity",
Action: "Remove",
Action: "!Remove",
},
confirmText: "Are you sure you want to remove this restore request?",
color: "danger",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/endpoint/MEM/list-policies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Page = () => {
},
{
label: "Delete Policy",
type: "GET",
type: "POST",
url: "/api/RemovePolicy",
data: {
ID: "id",
Expand Down
61 changes: 61 additions & 0 deletions src/pages/endpoint/MEM/list-scripts/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import { Layout as DashboardLayout } from "/src/layouts/index.js";
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
import { Code, TrashIcon } from "@heroicons/react/24/outline";

const Page = () => {
const pageTitle = "Scripts";

const actions = [
{
label: "Delete Script",
type: "POST",
url: "/api/RemoveIntuneScript",
data: {
ID: "id",
displayName: "displayName",
ScriptType: "scriptType",
},
confirmText: "Are you sure you want to delete this script?",
icon: <TrashIcon />,
color: "danger",
},
];

const offCanvas = {
extendedInfoFields: [
"scriptType",
"id",
"fileName",
"displayName",
"description",
"lastModifiedDateTime",
"runAsAccount",
"createdDateTime",
"runAs32Bit",
"executionFrequency",
"enforceSignatureCheck",
],
actions: actions,
};

const simpleColumns = [
"scriptType",
"displayName",
"description",
"runAsAccount",
"lastModifiedDateTime",
];

return (
<CippTablePage
title={pageTitle}
apiUrl="/api/ListIntuneScript"
actions={actions}
offCanvas={offCanvas}
simpleColumns={simpleColumns}
/>
);
};

Page.getLayout = (page) => <DashboardLayout allTenantsSupport={false}>{page}</DashboardLayout>;
export default Page;

0 comments on commit bd25acc

Please sign in to comment.