From 6a6fc51bf81cc6b9866d6bbb94aaeff4c1656096 Mon Sep 17 00:00:00 2001 From: ffknob Date: Thu, 14 Nov 2019 08:31:58 -0300 Subject: [PATCH] [ML] sets truncateText to true for the 'Latest timestamp' column (#50004) * sets truncateText to true for the 'Latest timestamp' column * Truncates the creation time at the analytics panel --- .../ml/public/overview/components/analytics_panel/table.tsx | 1 + .../public/overview/components/anomaly_detection_panel/table.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/x-pack/legacy/plugins/ml/public/overview/components/analytics_panel/table.tsx b/x-pack/legacy/plugins/ml/public/overview/components/analytics_panel/table.tsx index 787f0a467f44..7ee9cff107db 100644 --- a/x-pack/legacy/plugins/ml/public/overview/components/analytics_panel/table.tsx +++ b/x-pack/legacy/plugins/ml/public/overview/components/analytics_panel/table.tsx @@ -72,6 +72,7 @@ export const AnalyticsTable: FC = ({ items }) => { dataType: 'date', render: (time: number) => formatHumanReadableDateTimeSeconds(time), textOnly: true, + truncateText: true, sortable: true, width: '20%', }, diff --git a/x-pack/legacy/plugins/ml/public/overview/components/anomaly_detection_panel/table.tsx b/x-pack/legacy/plugins/ml/public/overview/components/anomaly_detection_panel/table.tsx index 883726980fa9..c61d5889e924 100644 --- a/x-pack/legacy/plugins/ml/public/overview/components/anomaly_detection_panel/table.tsx +++ b/x-pack/legacy/plugins/ml/public/overview/components/anomaly_detection_panel/table.tsx @@ -144,6 +144,7 @@ export const AnomalyDetectionTable: FC = ({ items, jobsList, statsBarData dataType: 'date', render: (time: number) => formatHumanReadableDateTimeSeconds(time), textOnly: true, + truncateText: true, sortable: true, width: '20%', },