[Fleet] Do not show settings banner while its loading in the add agent flyout (#103883)
This commit is contained in:
parent
36b21b4007
commit
9fdd569838
|
@ -63,6 +63,8 @@ export const AgentEnrollmentFlyout: React.FunctionComponent<Props> = ({
|
|||
}
|
||||
}, [modal, lastModal, settings]);
|
||||
|
||||
const isLoadingInitialRequest = settings.isLoading && settings.isInitialRequest;
|
||||
|
||||
return (
|
||||
<EuiFlyout data-test-subj="agentEnrollmentFlyout" onClose={onClose} size="m">
|
||||
<EuiFlyoutHeader hasBorder aria-labelledby="FleetAgentEnrollmentFlyoutTitle">
|
||||
|
@ -108,7 +110,7 @@ export const AgentEnrollmentFlyout: React.FunctionComponent<Props> = ({
|
|||
|
||||
<EuiFlyoutBody
|
||||
banner={
|
||||
fleetServerHosts.length === 0 && mode === 'managed' ? (
|
||||
!isLoadingInitialRequest && fleetServerHosts.length === 0 && mode === 'managed' ? (
|
||||
<MissingFleetServerHostCallout />
|
||||
) : undefined
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue