mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fleet UI: Add more description to delete host modal (#24089)
This commit is contained in:
parent
1f206a87b5
commit
b45aa4761d
3 changed files with 27 additions and 1 deletions
1
changes/22819-delete-modal
Normal file
1
changes/22819-delete-modal
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Fleet UI: Better information on what deleting a host does
|
||||
|
|
@ -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";
|
||||
|
||||
|
|
@ -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'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"
|
||||
|
|
|
|||
10
frontend/pages/hosts/components/DeleteHostModal/_styles.scss
Normal file
10
frontend/pages/hosts/components/DeleteHostModal/_styles.scss
Normal file
|
|
@ -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…
Reference in a new issue