mirror of
https://github.com/fleetdm/fleet
synced 2026-05-01 18:37:37 +00:00
relates to #10745 Implements the UI for automatic enrollment. This includes: **moving ABM section into this page**  **implementing end user authentication**  **implement uploading EULA pdf**   - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. - [x] Manual QA for all new/changed functionality
35 lines
1 KiB
TypeScript
35 lines
1 KiB
TypeScript
import PATHS from "router/paths";
|
|
|
|
import { ISideNavItem } from "../components/SideNav/SideNav";
|
|
import Integrations from "./cards/Integrations";
|
|
import Mdm from "./cards/MdmSettings/MdmSettings";
|
|
import AutomaticEnrollment from "./cards/AutomaticEnrollment/AutomaticEnrollment";
|
|
|
|
const getFilteredIntegrationSettingsNavItems = (
|
|
isSandboxMode = false
|
|
): ISideNavItem<any>[] => {
|
|
return [
|
|
// TODO: types
|
|
{
|
|
title: "Ticket destinations",
|
|
urlSection: "ticket-destinations",
|
|
path: PATHS.ADMIN_INTEGRATIONS_TICKET_DESTINATIONS,
|
|
Card: Integrations,
|
|
},
|
|
{
|
|
title: "Mobile device management (MDM)",
|
|
urlSection: "mdm",
|
|
path: PATHS.ADMIN_INTEGRATIONS_MDM,
|
|
Card: Mdm,
|
|
exclude: isSandboxMode,
|
|
},
|
|
{
|
|
title: "Automatic enrollment",
|
|
urlSection: "automatic-enrollment",
|
|
path: PATHS.ADMIN_INTEGRATIONS_AUTOMATIC_ENROLLMENT,
|
|
Card: AutomaticEnrollment,
|
|
},
|
|
].filter((navItem) => !navItem.exclude);
|
|
};
|
|
|
|
export default getFilteredIntegrationSettingsNavItems;
|