Account-Liste: kein irrefuehrendes gruenes "Konfiguriert" mehr bei nicht-pruefbaren Anbietern
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.
This commit is contained in:
parent
9c75e1676c
commit
ce3d7bb728
@ -2653,10 +2653,10 @@ export function App(): ReactElement {
|
|||||||
const renderAccountRow = (row: (typeof accountRows)[number], isMember: boolean): ReactElement => {
|
const renderAccountRow = (row: (typeof accountRows)[number], isMember: boolean): ReactElement => {
|
||||||
const st = row.accountId ? (snapshot.settings?.debridAccountStatuses?.[row.accountId] ?? null) : null;
|
const st = row.accountId ? (snapshot.settings?.debridAccountStatuses?.[row.accountId] ?? null) : null;
|
||||||
const checking = row.accountId ? megaCheckingIds.has(row.accountId) : false;
|
const checking = row.accountId ? megaCheckingIds.has(row.accountId) : false;
|
||||||
let statusCls = "ok";
|
let statusCls = "none";
|
||||||
let statusText = "Konfiguriert";
|
let statusText = "—";
|
||||||
if (row.disabled) { statusCls = "disabled"; statusText = "Deaktiviert"; }
|
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 (checking) { statusCls = "unknown"; statusText = "Prüfe…"; }
|
||||||
else if (!st) { statusCls = "unknown"; statusText = "Noch nicht geprüft"; }
|
else if (!st) { statusCls = "unknown"; statusText = "Noch nicht geprüft"; }
|
||||||
else if (!st.valid) { statusCls = "invalid"; statusText = st.message || "Login ungültig"; }
|
else if (!st.valid) { statusCls = "invalid"; statusText = st.message || "Login ungültig"; }
|
||||||
@ -2689,7 +2689,9 @@ export function App(): ReactElement {
|
|||||||
</span>
|
</span>
|
||||||
<span className="acct2-traffic">{traffic}</span>
|
<span className="acct2-traffic">{traffic}</span>
|
||||||
<span className="acct2-status">
|
<span className="acct2-status">
|
||||||
<span className={`account-validity-badge ${statusCls}`}>{statusText}</span>
|
{statusCls === "none"
|
||||||
|
? <span className="acct2-nostatus" title="Für diesen Anbieter gibt es keine Status-Prüfung">—</span>
|
||||||
|
: <span className={`account-validity-badge ${statusCls}`}>{statusText}</span>}
|
||||||
</span>
|
</span>
|
||||||
<span className="acct2-user" title={username}>{username}</span>
|
<span className="acct2-user" title={username}>{username}</span>
|
||||||
<span className="acct2-expiry">{expiry}</span>
|
<span className="acct2-expiry">{expiry}</span>
|
||||||
|
|||||||
@ -3313,6 +3313,7 @@ td {
|
|||||||
.acct2-expiry { font-variant-numeric: tabular-nums; color: var(--muted); }
|
.acct2-expiry { font-variant-numeric: tabular-nums; color: var(--muted); }
|
||||||
.acct2-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.acct2-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.acct2-status .account-validity-badge { margin-top: 0; }
|
.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-panel { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
|
||||||
.rotation-empty { color: var(--muted, #a59c8e); font-size: 12px; }
|
.rotation-empty { color: var(--muted, #a59c8e); font-size: 12px; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user