Skip to content

Commit 3ef1276

Browse files
Merge pull request #4157 from kris6673/delete-team
Feat: Add delete team action
2 parents 21cc75a + c9297ec commit 3ef1276

File tree

1 file changed

+14
-1
lines changed
  • src/pages/teams-share/teams/list-team

1 file changed

+14
-1
lines changed

src/pages/teams-share/teams/list-team/index.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Layout as DashboardLayout } from "/src/layouts/index.js";
22
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
33
import { Button } from "@mui/material";
4-
import { GroupAdd } from "@mui/icons-material";
4+
import { Delete, GroupAdd } from "@mui/icons-material";
55
import Link from "next/link";
66
import { Edit } from "@mui/icons-material";
77

@@ -16,6 +16,19 @@ const Page = () => {
1616
color: "warning",
1717
icon: <Edit />,
1818
},
19+
{
20+
label: "Delete Team",
21+
type: "POST",
22+
url: "/api/ExecGroupsDelete",
23+
icon: <Delete />,
24+
data: {
25+
ID: "id",
26+
GroupType: "!Microsoft 365",
27+
DisplayName: "displayName",
28+
},
29+
confirmText: "Are you sure you want to delete this team?",
30+
multiPost: false,
31+
},
1932
];
2033

2134
return (

0 commit comments

Comments
 (0)