Skip to content

Commit 90405ab

Browse files
add view setting options
1 parent 00ee930 commit 90405ab

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

src/app/[orgId]/settings/(private)/remote-exit-nodes/ExitNodesTable.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,14 @@ export default function ExitNodesTable({
263263
</DropdownMenuItem>
264264
</DropdownMenuContent>
265265
</DropdownMenu>
266+
<Link
267+
href={`/${nodeRow.orgId}/settings/remote-exit-nodes/${remoteExitNodeId}`}
268+
>
269+
<Button variant={"secondary"} size="sm">
270+
{t("edit")}
271+
<ArrowRight className="ml-2 w-4 h-4" />
272+
</Button>
273+
</Link>
266274
</div>
267275
);
268276
}

src/components/ClientsTable.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,14 @@ export default function ClientsTable({ clients, orgId }: ClientTableProps) {
278278
</Button>
279279
</DropdownMenuTrigger>
280280
<DropdownMenuContent align="end">
281-
{/* <Link */}
282-
{/* className="block w-full" */}
283-
{/* href={`/${clientRow.orgId}/settings/sites/${clientRow.nice}`} */}
284-
{/* > */}
285-
{/* <DropdownMenuItem> */}
286-
{/* View settings */}
287-
{/* </DropdownMenuItem> */}
288-
{/* </Link> */}
281+
<Link
282+
className="block w-full"
283+
href={`/${clientRow.orgId}/settings/clients/${clientRow.id}`}
284+
>
285+
<DropdownMenuItem>
286+
View settings
287+
</DropdownMenuItem>
288+
</Link>
289289
<DropdownMenuItem
290290
onClick={() => {
291291
setSelectedClient(clientRow);

0 commit comments

Comments
 (0)