Skip to content

Commit

Permalink
[ML] Display managed badge for transforms (#117679) (#117899)
Browse files Browse the repository at this point in the history
* [ML] Add managed badge

* Fix i18n

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Quynh Nguyen <[email protected]>
  • Loading branch information
kibanamachine and qn895 authored Nov 8, 2021
1 parent 4da2eb9 commit 8af1a3d
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,20 @@ export const useColumns = (
sortable: true,
truncateText: true,
scope: 'row',
render: (transformId, item) => {
if (item.config?._meta?.managed !== true) return transformId;
return (
<>
{transformId}
&nbsp;
<EuiBadge color="hollow" data-test-subj="transformListRowIsManagedBadge">
{i18n.translate('xpack.transform.transformList.managedBadgeLabel', {
defaultMessage: 'Managed',
})}
</EuiBadge>
</>
);
},
},
{
id: 'alertRule',
Expand Down

0 comments on commit 8af1a3d

Please sign in to comment.