Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fleet UI: Add more description to delete host modal #24089

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/22819-delete-modal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fleet UI: Better information on what deleting a host does
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import strUtils from "utilities/strings";

import Modal from "components/Modal";
import Button from "components/buttons/Button";
import CustomLink from "components/CustomLink";
import { LEARN_MORE_ABOUT_BASE_LINK } from "utilities/constants";

const baseClass = "delete-host-modal";

Expand Down Expand Up @@ -61,8 +63,21 @@ const DeleteHostModal = ({
<Modal title="Delete host" onExit={onCancel} className={baseClass}>
<>
<p>
This will remove the record of <b>{hostText()}</b>.{largeVolumeText()}
This will remove the record of <b>{hostText()}</b> and associated data
(e.g. unlock PINs).{largeVolumeText()}
</p>
<ul>
<li>
macOS, Windows, or Linux hosts will re-appear unless Fleet&apos;s
agent is uninstalled.{" "}
<CustomLink
text="Uninstall Fleet's agent"
url={`${LEARN_MORE_ABOUT_BASE_LINK}/uninstall-fleetd`}
newTab
/>
</li>
<li>iOS and iPadOS hosts will re-appear unless MDM is turned off.</li>
</ul>
<div className="modal-cta-wrap">
<Button
type="button"
Expand Down
10 changes: 10 additions & 0 deletions frontend/pages/hosts/components/DeleteHostModal/_styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.delete-host-modal {
ul {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: $pad-medium;
align-self: stretch;
padding-inline-start: $pad-large;
}
}
Loading