update remote node version col

This commit is contained in:
miloschwartz
2025-12-07 11:13:43 -05:00
parent 38203a0e7c
commit 311233b9f7

View File

@@ -231,12 +231,22 @@ export default function ExitNodesTable({
}, },
cell: ({ row }) => { cell: ({ row }) => {
const originalRow = row.original; const originalRow = row.original;
return originalRow.version || "-"; return (
<div className="flex items-center space-x-1">
{originalRow.version && originalRow.version ? (
<Badge variant="secondary">
{"v" + originalRow.version}
</Badge>
) : (
"-"
)}
</div>
);
} }
}, },
{ {
id: "actions", id: "actions",
header: () => (<span className="p-3">{t("actions")}</span>), header: () => <span className="p-3">{t("actions")}</span>,
cell: ({ row }) => { cell: ({ row }) => {
const nodeRow = row.original; const nodeRow = row.original;
const remoteExitNodeId = nodeRow.id; const remoteExitNodeId = nodeRow.id;
@@ -295,9 +305,7 @@ export default function ExitNodesTable({
}} }}
dialog={ dialog={
<div> <div>
<p> <p>{t("remoteExitNodeQuestionRemove")}</p>
{t("remoteExitNodeQuestionRemove")}
</p>
<p>{t("remoteExitNodeMessageRemove")}</p> <p>{t("remoteExitNodeMessageRemove")}</p>
</div> </div>