swarm-ui: use multiselect for every enum-shaped table filter
This commit is contained in:
parent
516716fa93
commit
74cb0c2793
3 changed files with 29 additions and 24 deletions
|
|
@ -91,8 +91,11 @@ const COLUMNS: TableColumn<HiveStatus>[] = [
|
|||
);
|
||||
},
|
||||
sortBy: (h) => FRESHNESS[h.freshness].label,
|
||||
filterValue: (h) => FRESHNESS[h.freshness].label,
|
||||
filterMode: "select",
|
||||
// Multiselect (not the single-value `"select"` mode) so the operator
|
||||
// can filter for e.g. "stale or offline" in one pass rather than one
|
||||
// freshness state at a time.
|
||||
filterValues: (h) => [FRESHNESS[h.freshness].label],
|
||||
filterMode: "multiselect",
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue