Skip to content

Commit

Permalink
added tags to agent details page (#135897)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic authored Jul 7, 2022
1 parent 158f5d8 commit 0060abf
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { useKibanaVersion } from '../../../../../hooks';
import { isAgentUpgradeable } from '../../../../../services';
import { AgentPolicySummaryLine } from '../../../../../components';
import { AgentHealth } from '../../../components';
import { Tags } from '../../../agent_list_page/components/tags';

// Allows child text to be truncated
const FlexItemWithMinWidth = styled(EuiFlexItem)`
Expand Down Expand Up @@ -174,6 +175,12 @@ export const AgentDetailsOverviewSection: React.FunctionComponent<{
/>
),
},
{
title: i18n.translate('xpack.fleet.agentDetails.tagsLabel', {
defaultMessage: 'Tags',
}),
description: (agent.tags ?? []).length > 0 ? <Tags tags={agent.tags ?? []} /> : '-',
},
].map(({ title, description }) => {
return (
<EuiFlexGroup>
Expand Down

0 comments on commit 0060abf

Please sign in to comment.