mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
feat: allow searching by status in systems table
This commit is contained in:
@@ -142,6 +142,12 @@ export default function SystemsTable() {
|
||||
minSize: 0,
|
||||
accessorKey: "name",
|
||||
id: t`System`,
|
||||
filterFn: (row, _, filterVal) => {
|
||||
// allow filtering by name or status via input field
|
||||
const { name, status } = row.original
|
||||
filterVal = filterVal.toLowerCase()
|
||||
return name.toLowerCase().includes(filterVal) || t`${status}`.toLowerCase().includes(filterVal)
|
||||
},
|
||||
enableHiding: false,
|
||||
icon: ServerIcon,
|
||||
cell: (info) => (
|
||||
|
Reference in New Issue
Block a user