mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-04 13:51:30 +00:00
refactor(gateway): extract node pairing reconciliation
This commit is contained in:
@@ -19,7 +19,7 @@ export function renderPendingPairingRequestsTable(params: {
|
||||
IP: r.remoteIp ?? "",
|
||||
Requested:
|
||||
typeof r.ts === "number" ? formatTimeAgo(Math.max(0, now - r.ts)) : theme.muted("unknown"),
|
||||
Repair: r.isRepair ? theme.warn("yes") : "",
|
||||
Repair: r.repairReason ? theme.warn(r.repairReason) : r.isRepair ? theme.warn("yes") : "",
|
||||
}));
|
||||
return {
|
||||
heading: theme.heading("Pending"),
|
||||
@@ -30,7 +30,7 @@ export function renderPendingPairingRequestsTable(params: {
|
||||
{ key: "Node", header: "Node", minWidth: 14, flex: true },
|
||||
{ key: "IP", header: "IP", minWidth: 10 },
|
||||
{ key: "Requested", header: "Requested", minWidth: 12 },
|
||||
{ key: "Repair", header: "Repair", minWidth: 6 },
|
||||
{ key: "Repair", header: "Repair", minWidth: 12 },
|
||||
],
|
||||
rows,
|
||||
}).trimEnd(),
|
||||
|
||||
Reference in New Issue
Block a user