From 8cf3ff31db6da5755504f7831f324ae441200293 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Mon, 17 Aug 2026 14:46:19 -0400 Subject: [PATCH] Show the partner's API key and whether it is answering on the remote card --- Plugin/unraid/pages/partnership.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Plugin/unraid/pages/partnership.php b/Plugin/unraid/pages/partnership.php index 5d250b5..c1adedd 100644 --- a/Plugin/unraid/pages/partnership.php +++ b/Plugin/unraid/pages/partnership.php @@ -1023,7 +1023,22 @@ function _nodeCard(node) { style="font-size:9px;padding:1px 8px;background:#1a3a1a;color:#6fcf97;border:1px solid #2e6b2e; border-radius:2px;cursor:pointer;margin-left:6px;white-space:nowrap;">+ Create `) - : ''; + // Remotes get the same row, minus the buttons — the key belongs to that host and is renewed + // there. Two facts, kept apart: the key is configured (read from the partner's conf in the + // RAM cache) and the key is answering (that host's API served this page's stats). A key that + // is set but no longer authenticates is the interesting case, and merging them would hide it. + : (node.api_key_set + ? `
+ 🔑 API key: ${node.api_key_preview} + + ${node.api_live ? '● live' : '○ set, not answering'} +
` + : `
+ ⚡ No API key on this host — create it there, then Save Conf to share it +
`); // ── Metrics strip ──────────────────────────────────────────────────────────── const m = node.metrics || {};