fix(ui): открывать интерфейс WireGuard с контекстом сервера

This commit is contained in:
Denozordec committed 2026-09-20 21:59:57 +07:00
1 parent 67a152b7c8
commit af84f0135d
7 files changed
+219 -29

No files matched your search

@@ -273,7 +273,7 @@ function WireguardDataGrid({
manualPagination: true,
data: interfaces,
columns,
getRowId: (row) => row.id,
getRowId: (row) => JSON.stringify([row.serverId, row.id]),
getRowCanExpand: () => true,
})
@@ -293,7 +293,7 @@ function WireguardDataGrid({
<DataGridShell
table={table}
recordCount={interfaces.length}
onRowClick={(row) => table.getRow(row.id).toggleExpanded()}
onRowClick={(row) => table.getRow(JSON.stringify([row.serverId, row.id])).toggleExpanded()}
tableClassNames={{
headerRow: "border-b border-border",
bodyRow: cn("group/row", "[&[data-disabled=true]]:opacity-50"),