[Fleet] Fix all add agent steps disabled when fleet server policy selected (#134448)

* enable deployment mode step if policy selected

* add fleet server to excluded packages
This commit is contained in:
Mark Hopkin 2022-06-15 13:53:19 +01:00 committed by GitHub
parent 780c78e751
commit 2f6605025c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -47,7 +47,7 @@ export const AdvancedTab: React.FunctionComponent<AdvancedTabProps> = ({ selecte
getSetDeploymentModeStep({
deploymentMode,
setDeploymentMode,
disabled: !Boolean(fleetServerPolicyId),
disabled: !Boolean(fleetServerPolicyId || selectedPolicyId),
}),
getAddFleetServerHostStep({ fleetServerHostForm, disabled: !Boolean(fleetServerPolicyId) }),
getGenerateServiceTokenStep({

View file

@ -11,14 +11,15 @@ import { PLUGIN_ID, INTEGRATIONS_PLUGIN_ID, pagePathGetters } from '../../../../
// or are otherwise not accounted for by verbiage and elements throughout the multi-step UI
const EXCLUDED_PACKAGES = [
'apm',
'endpoint',
'synthetics',
'security_detection_engine',
'osquery_manager',
'dga',
'cloud_security_posture',
'problemchild',
'dga',
'endpoint',
'fleet_server',
'kubernetes',
'osquery_manager',
'problemchild',
'security_detection_engine',
'synthetics',
];
interface GetInstallPkgRouteOptionsParams {