mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Update host details UI for OS settings to display Windows disk encryption error detail (#14625)
This commit is contained in:
parent
484550a620
commit
563699d54f
6 changed files with 12 additions and 4 deletions
|
|
@ -56,6 +56,7 @@ const DEFAULT_HOST_MOCK: IHost = {
|
|||
os_settings: {
|
||||
disk_encryption: {
|
||||
status: null,
|
||||
detail: "",
|
||||
},
|
||||
},
|
||||
macos_settings: {
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ const DEFAULT_HOST_MDM_DATA: IHostMdmData = {
|
|||
os_settings: {
|
||||
disk_encryption: {
|
||||
status: "verified",
|
||||
detail: "",
|
||||
},
|
||||
},
|
||||
macos_settings: {
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ type MacDiskEncryptionActionRequired = "log_out" | "rotate_key" | null;
|
|||
export interface IOSSettings {
|
||||
disk_encryption: {
|
||||
status: DiskEncryptionStatus | null;
|
||||
detail: string;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -108,7 +108,10 @@ const makeWindowsRows = ({ os_settings }: IHostMdmData) => {
|
|||
|
||||
const rows: ITableRowOsSettings[] = [];
|
||||
rows.push(
|
||||
generateWinDiskEncryptionProfile(os_settings.disk_encryption.status)
|
||||
generateWinDiskEncryptionProfile(
|
||||
os_settings.disk_encryption.status,
|
||||
os_settings.disk_encryption.detail
|
||||
)
|
||||
);
|
||||
|
||||
return rows;
|
||||
|
|
|
|||
|
|
@ -197,7 +197,8 @@ const HostSummary = ({
|
|||
isWindowsDiskEncryptionStatus(osSettings.disk_encryption.status)
|
||||
) {
|
||||
const winDiskEncryptionProfile: IHostMdmProfile = generateWinDiskEncryptionProfile(
|
||||
osSettings.disk_encryption.status
|
||||
osSettings.disk_encryption.status,
|
||||
osSettings.disk_encryption.detail
|
||||
);
|
||||
hostMdmProfiles = hostMdmProfiles
|
||||
? [...hostMdmProfiles, winDiskEncryptionProfile]
|
||||
|
|
|
|||
|
|
@ -21,13 +21,14 @@ const convertWinDiskEncryptionStatusToProfileStatus = (
|
|||
*/
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const generateWinDiskEncryptionProfile = (
|
||||
diskEncryptionStatus: IWindowsDiskEncryptionStatus
|
||||
diskEncryptionStatus: IWindowsDiskEncryptionStatus,
|
||||
detail: string
|
||||
): IHostMdmProfile => {
|
||||
return {
|
||||
profile_id: 0, // This s the only type of profile that can have this number
|
||||
name: "Disk Encryption",
|
||||
status: convertWinDiskEncryptionStatusToProfileStatus(diskEncryptionStatus),
|
||||
detail: "",
|
||||
detail,
|
||||
operation_type: null,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue