Apply account-PnL display pref to dashboard KPI and position tables.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-23 12:44:36 +08:00
parent 8e3c00641f
commit b6156e0049
3 changed files with 49 additions and 19 deletions
+5
View File
@@ -13,6 +13,8 @@
return displayPref("show_account_pnl", true);
}
window.hubShowAccountPnlPref = showAccountPnlPref;
function showNavFundsPref() {
return displayPref("show_nav_funds", true);
}
@@ -5187,6 +5189,9 @@
loadSettingsMetaLine();
}
if (lastMonitorRows.length) renderMonitorGrid(lastMonitorRows);
if (window.hubDashboardPage && window.hubDashboardPage.refresh) {
window.hubDashboardPage.refresh();
}
if (!pageNavAllowed(currentPage())) {
history.replaceState({}, "", "/monitor");
setActiveNav();