@@ -16,9 +16,7 @@ import {
1616 EuiLink ,
1717 EuiPopover ,
1818 EuiSpacer ,
19- EuiSwitch ,
2019 EuiText ,
21- EuiTitle ,
2220 EuiButtonIcon ,
2321 EuiContextMenuPanel ,
2422 EuiContextMenuItem ,
@@ -391,29 +389,6 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
391389 onClose = { ( ) => setIsEnrollmentFlyoutOpen ( false ) }
392390 />
393391 ) : null }
394- < EuiFlexGroup alignItems = { 'center' } justifyContent = { 'spaceBetween' } >
395- < EuiFlexItem grow = { false } >
396- < EuiTitle size = "s" >
397- < EuiText color = "subdued" >
398- < FormattedMessage
399- id = "xpack.ingestManager.agentList.pageDescription"
400- defaultMessage = "Use agents to faciliate data collection for your Elastic stack."
401- />
402- </ EuiText >
403- </ EuiTitle >
404- </ EuiFlexItem >
405- < EuiFlexItem grow = { false } >
406- < EuiSwitch
407- label = { i18n . translate ( 'xpack.ingestManager.agentList.showInactiveSwitchLabel' , {
408- defaultMessage : 'Show inactive agents' ,
409- } ) }
410- checked = { showInactive }
411- onChange = { ( ) => setShowInactive ( ! showInactive ) }
412- />
413- </ EuiFlexItem >
414- </ EuiFlexGroup >
415- < EuiSpacer size = "m" />
416-
417392 < EuiFlexGroup alignItems = { 'center' } >
418393 { selectedAgents . length ? (
419394 < EuiFlexItem >
@@ -458,7 +433,7 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
458433 ) : null }
459434 < EuiFlexItem grow = { 4 } >
460435 < EuiFlexGroup gutterSize = "s" >
461- < EuiFlexItem grow = { 3 } >
436+ < EuiFlexItem grow = { 6 } >
462437 < SearchBar
463438 value = { search }
464439 onChange = { newSearch => {
@@ -471,7 +446,7 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
471446 fieldPrefix = "agents"
472447 />
473448 </ EuiFlexItem >
474- < EuiFlexItem grow = { 1 } >
449+ < EuiFlexItem grow = { 2 } >
475450 < EuiFilterGroup >
476451 < EuiPopover
477452 ownFocus
@@ -552,6 +527,15 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
552527 ) ) }
553528 </ div >
554529 </ EuiPopover >
530+ < EuiFilterButton
531+ hasActiveFilters = { showInactive }
532+ onClick = { ( ) => setShowInactive ( ! showInactive ) }
533+ >
534+ < FormattedMessage
535+ id = "xpack.ingestManager.agentList.showInactiveSwitchLabel"
536+ defaultMessage = "Show inactive"
537+ />
538+ </ EuiFilterButton >
555539 </ EuiFilterGroup >
556540 </ EuiFlexItem >
557541 </ EuiFlexGroup >
0 commit comments