From 78f7eec3cba3766c8221dcd9ce977582a016dc7b Mon Sep 17 00:00:00 2001 From: Kyle Pollich Date: Tue, 5 Jul 2022 14:29:56 -0400 Subject: [PATCH] Add clarifying comment --- x-pack/plugins/fleet/public/hooks/use_fleet_status.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-pack/plugins/fleet/public/hooks/use_fleet_status.tsx b/x-pack/plugins/fleet/public/hooks/use_fleet_status.tsx index 85df40a31d801..7319cd9f07be7 100644 --- a/x-pack/plugins/fleet/public/hooks/use_fleet_status.tsx +++ b/x-pack/plugins/fleet/public/hooks/use_fleet_status.tsx @@ -23,6 +23,10 @@ interface FleetStatusState { interface FleetStatus extends FleetStatusState { refresh: () => Promise; + + // This flag allows us to opt into displaying the Fleet Server enrollment instructions even if + // a healthy Fleet Server has been detected, so we can delay removing the enrollment UI until + // some user action like clicking a "continue" button forceDisplayInstructions: boolean; setForceDisplayInstructions: React.Dispatch; }