Skip to content

Commit bd98e7e

Browse files
author
oatkiller
committed
Use a badge to show invalid date
1 parent aee6769 commit bd98e7e

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

  • x-pack/plugins/endpoint/public/embeddables/resolver/view

x-pack/plugins/endpoint/public/embeddables/resolver/view/panel.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,15 @@ export const Panel = memo(function Event({ className }: { className?: string })
111111
dataType: 'date',
112112
sortable: true,
113113
render(eventTimestamp?: Date) {
114-
return eventTimestamp
115-
? formatter.format(eventTimestamp)
116-
: i18n.translate('xpack.endpoint.resolver.panel.tabel.row.timestampInvalidLabel', {
117-
defaultMessage: 'timestamp invalid',
118-
});
114+
return eventTimestamp ? (
115+
formatter.format(eventTimestamp)
116+
) : (
117+
<EuiBadge color="warning">
118+
{i18n.translate('xpack.endpoint.resolver.panel.tabel.row.timestampInvalidLabel', {
119+
defaultMessage: 'invalid',
120+
})}
121+
</EuiBadge>
122+
);
119123
},
120124
},
121125
{

0 commit comments

Comments
 (0)