mirror of
https://github.com/fankes/beszel.git
synced 2025-10-21 02:39:27 +08:00
site updates
This commit is contained in:
@@ -239,7 +239,17 @@ export function DataTable() {
|
||||
<TableBody>
|
||||
{table.getRowModel().rows?.length ? (
|
||||
table.getRowModel().rows.map((row) => (
|
||||
<TableRow key={row.original.id} data-state={row.getIsSelected() && 'selected'}>
|
||||
<TableRow
|
||||
key={row.original.id}
|
||||
data-state={row.getIsSelected() && 'selected'}
|
||||
className="cursor-pointer"
|
||||
onClick={(e) => {
|
||||
const target = e.target as HTMLElement
|
||||
if (target.tagName !== 'BUTTON' && !target.hasAttribute('role')) {
|
||||
navigate(`/server/${row.original.name}`)
|
||||
}
|
||||
}}
|
||||
>
|
||||
{row.getVisibleCells().map((cell) => (
|
||||
<TableCell
|
||||
key={cell.id}
|
||||
|
Reference in New Issue
Block a user