From fd6391b734a9100169357dbb92b63b7795eb2773 Mon Sep 17 00:00:00 2001 From: dekun Date: Wed, 8 Jul 2026 19:18:44 +0800 Subject: [PATCH] Remove manual refresh funds button from header. Account snapshot already refreshes automatically on load, interval, and tab switch. Co-authored-by: Cursor --- lib/instance/templates/embed_boot_scripts.html | 2 -- lib/instance/templates/index.html | 2 -- lib/instance/templates/instance_header_panel.html | 1 - 3 files changed, 5 deletions(-) diff --git a/lib/instance/templates/embed_boot_scripts.html b/lib/instance/templates/embed_boot_scripts.html index 8339139..4a44b45 100644 --- a/lib/instance/templates/embed_boot_scripts.html +++ b/lib/instance/templates/embed_boot_scripts.html @@ -1252,8 +1252,6 @@ if(window.ManualOrderRrPreview){ }); refreshAccountSnapshot(); -const settingsRefreshFunds = document.getElementById("settings-refresh-funds"); -if (settingsRefreshFunds) settingsRefreshFunds.addEventListener("click", function(){ refreshAccountSnapshot({ force: true }); }); if (window.AccountRiskBadge) AccountRiskBadge.startTicker(); const _journalFormEl = document.getElementById("journal-form"); if(_journalFormEl){ diff --git a/lib/instance/templates/index.html b/lib/instance/templates/index.html index 7d131b3..bf2874a 100644 --- a/lib/instance/templates/index.html +++ b/lib/instance/templates/index.html @@ -1828,8 +1828,6 @@ if(window.ManualOrderRrPreview){ }); refreshAccountSnapshot(); -const settingsRefreshFunds = document.getElementById("settings-refresh-funds"); -if (settingsRefreshFunds) settingsRefreshFunds.addEventListener("click", function(){ refreshAccountSnapshot({ force: true }); }); if (window.AccountRiskBadge) AccountRiskBadge.startTicker(); const _journalFormEl = document.getElementById("journal-form"); if(_journalFormEl){ diff --git a/lib/instance/templates/instance_header_panel.html b/lib/instance/templates/instance_header_panel.html index b42a598..09229bb 100644 --- a/lib/instance/templates/instance_header_panel.html +++ b/lib/instance/templates/instance_header_panel.html @@ -32,7 +32,6 @@ {{ risk_status.status_label|default('正常') }} {% include 'instance_theme_toggle.html' %} -