feat(risk): show live countdown on freeze status badges
Expose freeze_until_ms from risk API and tick hub/instance badges with remaining 1h/4h/daily time. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -514,6 +514,7 @@
|
||||
|
||||
function formatRiskStatusBadge(riskStatus) {
|
||||
if (!riskStatus || typeof riskStatus !== "object") return "";
|
||||
if (window.AccountRiskBadge) return AccountRiskBadge.formatBadgeHtml(riskStatus, esc);
|
||||
const st = riskStatus.status || "normal";
|
||||
const label = esc(riskStatus.status_label || "正常");
|
||||
const title = esc(riskStatus.reason || "");
|
||||
@@ -4469,4 +4470,5 @@
|
||||
setActiveNav();
|
||||
});
|
||||
});
|
||||
if (window.AccountRiskBadge) AccountRiskBadge.startTicker();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user