mirror of
https://github.com/fleetdm/fleet
synced 2026-04-27 08:27:42 +00:00
related to #9402 and #9404 Implements UI for toggling off and on fleet mdm disk encryption management and also the disk encryption aggregate data tables. **Toggling disk encryption:**  **disk encryption aggregate:**  - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. - [x] Manual QA for all new/changed functionality
33 lines
848 B
TypeScript
33 lines
848 B
TypeScript
import PATHS from "router/paths";
|
|
import { ISideNavItem } from "pages/admin/components/SideNav/SideNav";
|
|
import { IMdmProfile } from "interfaces/mdm";
|
|
|
|
import DiskEncryption from "./cards/DiskEncryption";
|
|
import CustomSettings from "./cards/CustomSettings";
|
|
|
|
interface IMacOSSettingsCardProps {
|
|
currentTeamId?: number;
|
|
profiles?: IMdmProfile[];
|
|
onProfileUpload?: () => void;
|
|
onProfileDelete?: () => void;
|
|
}
|
|
|
|
// TODO: types
|
|
const MAC_OS_SETTINGS_NAV_ITEMS: ISideNavItem<
|
|
IMacOSSettingsCardProps | any
|
|
>[] = [
|
|
{
|
|
title: "Disk encryption",
|
|
urlSection: "disk-encryption",
|
|
path: PATHS.CONTROLS_DISK_ENCRYPTION,
|
|
Card: DiskEncryption,
|
|
},
|
|
{
|
|
title: "Custom settings",
|
|
urlSection: "custom-settings",
|
|
path: PATHS.CONTROLS_CUSTOM_SETTINGS,
|
|
Card: CustomSettings,
|
|
},
|
|
];
|
|
|
|
export default MAC_OS_SETTINGS_NAV_ITEMS;
|