mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 08:46:38 +00:00
update remote node version col
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user