File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
x-pack/platform/plugins/shared/fleet/public/applications/fleet Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export const DefaultLayout: React.FunctionComponent<Props> = ({
3737 const { docLinks } = useStartServices ( ) ;
3838 const granularPrivilegesCallout = useDismissableTour ( 'GRANULAR_PRIVILEGES' ) ;
3939 const { enableAutomaticAgentUpgrades } = ExperimentalFeaturesService . get ( ) ;
40- const canEnabledAutomaticAgentUpgrades =
40+ const canEnableAutomaticAgentUpgrades =
4141 enableAutomaticAgentUpgrades && licenseService . isEnterprise ( ) ;
4242
4343 const tabs = [
@@ -149,7 +149,7 @@ export const DefaultLayout: React.FunctionComponent<Props> = ({
149149 < WithHeaderLayout leftColumn = { < DefaultPageTitle /> } rightColumn = { rightColumn } tabs = { tabs } >
150150 { children }
151151 </ WithHeaderLayout >
152- { canEnabledAutomaticAgentUpgrades ? (
152+ { canEnableAutomaticAgentUpgrades ? (
153153 < AutoUpgradeAgentsTour anchor = "#fleet-agent-policies-tab" />
154154 ) : null }
155155 </ >
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export const AgentPolicyActionMenu = memo<{
5555 useState < boolean > ( false ) ;
5656 const refreshAgentPolicy = useAgentPolicyRefresh ( ) ;
5757 const { enableAutomaticAgentUpgrades } = ExperimentalFeaturesService . get ( ) ;
58- const canEnabledAutomaticAgentUpgrades =
58+ const canEnableAutomaticAgentUpgrades =
5959 enableAutomaticAgentUpgrades && licenseService . isEnterprise ( ) ;
6060
6161 const isFleetServerPolicy = useMemo (
@@ -212,7 +212,7 @@ export const AgentPolicyActionMenu = memo<{
212212 ) }
213213 </ EuiContextMenuItem > ,
214214 viewPolicyItem ,
215- ...( canEnabledAutomaticAgentUpgrades ? [ manageAutoUpgradeAgentsItem ] : [ ] ) ,
215+ ...( canEnableAutomaticAgentUpgrades ? [ manageAutoUpgradeAgentsItem ] : [ ] ) ,
216216 copyPolicyItem ,
217217 deletePolicyItem ,
218218 ] ;
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export const HeaderRightContent: React.FunctionComponent<HeaderRightContentProps
6565 useState < boolean > ( false ) ;
6666 const refreshAgentPolicy = useAgentPolicyRefresh ( ) ;
6767 const { enableAutomaticAgentUpgrades } = ExperimentalFeaturesService . get ( ) ;
68- const canEnabledAutomaticAgentUpgrades =
68+ const canEnableAutomaticAgentUpgrades =
6969 enableAutomaticAgentUpgrades && licenseService . isEnterprise ( ) ;
7070
7171 const isFleetServerPolicy = useMemo (
@@ -219,7 +219,7 @@ export const HeaderRightContent: React.FunctionComponent<HeaderRightContentProps
219219 '' ,
220220 } ,
221221 { isDivider : true } ,
222- ...( canEnabledAutomaticAgentUpgrades && authz . fleet . allAgentPolicies
222+ ...( canEnableAutomaticAgentUpgrades && authz . fleet . allAgentPolicies
223223 ? [
224224 {
225225 label : i18n . translate ( 'xpack.fleet.policyDetails.summary.autoUpgrade' , {
You can’t perform that action at this time.
0 commit comments