Unverified Commit cc860396 authored by Joaquim Rocha's avatar Joaquim Rocha Committed by GitHub
Browse files

Merge pull request #577 from kinvolk/event-sorting

frontend: Improve event default sorting
parents b5727b52 efab6fda
No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
......@@ -121,6 +121,7 @@ function EventsSection() {
{
label: t('glossary|Namespace'),
getter: event => event.metadata.namespace || '-',
sort: true,
},
// @todo: Maybe the message should be shown on slide-down.
{
......@@ -130,6 +131,7 @@ function EventsSection() {
<Box>{makeStatusLabel(event)}</Box>
</LightTooltip>
),
sort: (e1: Event, e2: Event) => e1.reason.localeCompare(e2.reason),
},
{
label: t('frequent|Age'),
......@@ -142,7 +144,7 @@ function EventsSection() {
: []
}
data={events}
defaultSortingColumn={3}
defaultSortingColumn={5}
/>
</SectionBox>
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment