Windows wipe: Clarify that you'll have to do a Windows reinstall from a USB drive (#39395)

For the following quick win:
- https://github.com/fleetdm/fleet/issues/38942
This commit is contained in:
Noah Talerman
2026-02-05 13:23:50 -05:00
committed by GitHub
parent fbc1866c3f
commit 0a25e55f04
2 changed files with 15 additions and 1 deletions
@@ -1645,6 +1645,7 @@ const HostDetailsPage = ({
<WipeModal
id={host.id}
hostName={host.display_name}
isWindowsHost={isWindowsHost}
onSuccess={() => setHostMdmDeviceState("wiping")}
onClose={() => setShowWipeModal(false)}
/>
@@ -13,11 +13,18 @@ const baseClass = "wipe-modal";
interface IWipeModalProps {
id: number;
hostName: string;
isWindowsHost: boolean;
onSuccess: () => void;
onClose: () => void;
}
const WipeModal = ({ id, hostName, onSuccess, onClose }: IWipeModalProps) => {
const WipeModal = ({
id,
hostName,
isWindowsHost,
onSuccess,
onClose,
}: IWipeModalProps) => {
const { renderFlash } = useContext(NotificationContext);
const [lockChecked, setLockChecked] = React.useState(false);
const [isWiping, setIsWiping] = React.useState(false);
@@ -43,6 +50,12 @@ const WipeModal = ({ id, hostName, onSuccess, onClose }: IWipeModalProps) => {
<>
<div className={`${baseClass}__modal-content`}>
<p>All content will be erased on this host.</p>
{isWindowsHost && (
<p>
To use the host again, you will have to do a Windows reinstall
from a USB drive.
</p>
)}
<div className={`${baseClass}__confirm-message`}>
<span>
<b>Please check to confirm:</b>