From ce3d7bb728cc80ae4c6a3457fd488eefadf163c0 Mon Sep 17 00:00:00 2001 From: Sucukdeluxe Date: Mon, 15 Jun 2026 02:02:07 +0200 Subject: [PATCH] Account-Liste: kein irrefuehrendes gruenes "Konfiguriert" mehr bei nicht-pruefbaren Anbietern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Single-Token-Anbieter (Real-Debrid, AllDebrid, 1Fichier, DDownload, LinkSnappy, BestDebrid) haben keine Status-Pruefung. Bisher stand bei ihnen ein gruenes "Konfiguriert"-Badge in der Status-Spalte, das wie "geprueft & ok" aussah, obwohl nichts geprueft wurde. Jetzt zeigen sie dort ein dezentes graues "—" (Tooltip: "Fuer diesen Anbieter gibt es keine Status-Pruefung"). Gruen/gelb/rot bleibt den tatsaechlich geprueften Mega-Debrid-/Debrid-Link-Accounts vorbehalten. Reine Renderer-Aenderung. tsc=6, build ok. --- src/renderer/App.tsx | 10 ++++++---- src/renderer/styles.css | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index dd8eeaa..aa23186 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -2653,10 +2653,10 @@ export function App(): ReactElement { const renderAccountRow = (row: (typeof accountRows)[number], isMember: boolean): ReactElement => { const st = row.accountId ? (snapshot.settings?.debridAccountStatuses?.[row.accountId] ?? null) : null; const checking = row.accountId ? megaCheckingIds.has(row.accountId) : false; - let statusCls = "ok"; - let statusText = "Konfiguriert"; + let statusCls = "none"; + let statusText = "—"; if (row.disabled) { statusCls = "disabled"; statusText = "Deaktiviert"; } - else if (!row.checkable) { statusCls = "ok"; statusText = "Konfiguriert"; } + else if (!row.checkable) { statusCls = "none"; statusText = "—"; } else if (checking) { statusCls = "unknown"; statusText = "Prüfe…"; } else if (!st) { statusCls = "unknown"; statusText = "Noch nicht geprüft"; } else if (!st.valid) { statusCls = "invalid"; statusText = st.message || "Login ungültig"; } @@ -2689,7 +2689,9 @@ export function App(): ReactElement { {traffic} - {statusText} + {statusCls === "none" + ? + : {statusText}} {username} {expiry} diff --git a/src/renderer/styles.css b/src/renderer/styles.css index 806dc1e..e2db774 100644 --- a/src/renderer/styles.css +++ b/src/renderer/styles.css @@ -3313,6 +3313,7 @@ td { .acct2-expiry { font-variant-numeric: tabular-nums; color: var(--muted); } .acct2-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .acct2-status .account-validity-badge { margin-top: 0; } +.acct2-nostatus { color: var(--muted); opacity: 0.6; font-variant-numeric: tabular-nums; } .rotation-panel { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; } .rotation-empty { color: var(--muted, #a59c8e); font-size: 12px; }