mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* [ML] Add managed badge * Fix i18n Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
This commit is contained in:
parent
4da2eb9b6c
commit
8af1a3daa6
1 changed files with 14 additions and 0 deletions
|
@ -144,6 +144,20 @@ export const useColumns = (
|
||||||
sortable: true,
|
sortable: true,
|
||||||
truncateText: true,
|
truncateText: true,
|
||||||
scope: 'row',
|
scope: 'row',
|
||||||
|
render: (transformId, item) => {
|
||||||
|
if (item.config?._meta?.managed !== true) return transformId;
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{transformId}
|
||||||
|
|
||||||
|
<EuiBadge color="hollow" data-test-subj="transformListRowIsManagedBadge">
|
||||||
|
{i18n.translate('xpack.transform.transformList.managedBadgeLabel', {
|
||||||
|
defaultMessage: 'Managed',
|
||||||
|
})}
|
||||||
|
</EuiBadge>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'alertRule',
|
id: 'alertRule',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue