mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Fix unreleased UI bug in unlock modal (#16815)
This commit is contained in:
parent
260fd225e8
commit
059e21d7b3
2 changed files with 3 additions and 3 deletions
|
|
@ -1003,7 +1003,6 @@ const HostDetailsPage = ({
|
|||
id={host.id}
|
||||
platform={host.platform}
|
||||
hostName={host.display_name}
|
||||
pin={123456}
|
||||
onSuccess={() => {
|
||||
host.platform !== "darwin" && setHostMdmDeviceState("unlocking");
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ interface IUnlockModalProps {
|
|||
id: number;
|
||||
platform: string;
|
||||
hostName: string;
|
||||
pin?: number;
|
||||
onSuccess: () => void;
|
||||
onClose: () => void;
|
||||
}
|
||||
|
|
@ -25,7 +24,6 @@ const UnlockModal = ({
|
|||
id,
|
||||
platform,
|
||||
hostName,
|
||||
pin,
|
||||
onSuccess,
|
||||
onClose,
|
||||
}: IUnlockModalProps) => {
|
||||
|
|
@ -41,6 +39,9 @@ const UnlockModal = ({
|
|||
() => hostAPI.unlockHost(id),
|
||||
{
|
||||
enabled: platform === "darwin",
|
||||
refetchOnWindowFocus: false,
|
||||
refetchOnReconnect: false,
|
||||
retry: false,
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue