mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
render the windows disk encryption error details message as a plain text (#16936)
relates to #16417 renders the Windows host disk encryption error messages as standard text. These messages do not follow the expected format (e.g. `/foo/bar/baz: status 200`), so we will just render them as standard text.  - [x] Manual QA for all new/changed functionality
This commit is contained in:
parent
775decf152
commit
e261bb5eb7
1 changed files with 9 additions and 0 deletions
|
|
@ -63,6 +63,15 @@ const generateFormattedTooltip = (detail: string) => {
|
|||
const keyValuePairs = detail.split(/, */);
|
||||
const formattedElements: JSX.Element[] = [];
|
||||
|
||||
// Special case to handle bitlocker error message. It does not follow the
|
||||
// expected string format so we will just render the error message as is.
|
||||
if (
|
||||
detail.includes("BitLocker") ||
|
||||
detail.includes("preparing volume for encryption")
|
||||
) {
|
||||
return detail;
|
||||
}
|
||||
|
||||
keyValuePairs.forEach((pair, i) => {
|
||||
const [key, value] = pair.split(/: */);
|
||||
if (key && value) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue