Remove manual refresh funds button from header.
Account snapshot already refreshes automatically on load, interval, and tab switch. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1252,8 +1252,6 @@ if(window.ManualOrderRrPreview){
|
|||||||
});
|
});
|
||||||
|
|
||||||
refreshAccountSnapshot();
|
refreshAccountSnapshot();
|
||||||
const settingsRefreshFunds = document.getElementById("settings-refresh-funds");
|
|
||||||
if (settingsRefreshFunds) settingsRefreshFunds.addEventListener("click", function(){ refreshAccountSnapshot({ force: true }); });
|
|
||||||
if (window.AccountRiskBadge) AccountRiskBadge.startTicker();
|
if (window.AccountRiskBadge) AccountRiskBadge.startTicker();
|
||||||
const _journalFormEl = document.getElementById("journal-form");
|
const _journalFormEl = document.getElementById("journal-form");
|
||||||
if(_journalFormEl){
|
if(_journalFormEl){
|
||||||
|
|||||||
@@ -1828,8 +1828,6 @@ if(window.ManualOrderRrPreview){
|
|||||||
});
|
});
|
||||||
|
|
||||||
refreshAccountSnapshot();
|
refreshAccountSnapshot();
|
||||||
const settingsRefreshFunds = document.getElementById("settings-refresh-funds");
|
|
||||||
if (settingsRefreshFunds) settingsRefreshFunds.addEventListener("click", function(){ refreshAccountSnapshot({ force: true }); });
|
|
||||||
if (window.AccountRiskBadge) AccountRiskBadge.startTicker();
|
if (window.AccountRiskBadge) AccountRiskBadge.startTicker();
|
||||||
const _journalFormEl = document.getElementById("journal-form");
|
const _journalFormEl = document.getElementById("journal-form");
|
||||||
if(_journalFormEl){
|
if(_journalFormEl){
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
<span class="risk-status-badge risk-status-{{ risk_status.status|default('normal') }}" id="account-risk-badge" role="status" title="{{ risk_status.reason|default('', true) }}" data-status-label="{{ risk_status.status_label|default('正常') }}"{% if risk_status.freeze_until_ms %} data-freeze-until-ms="{{ risk_status.freeze_until_ms }}"{% endif %}>{{ risk_status.status_label|default('正常') }}</span>
|
<span class="risk-status-badge risk-status-{{ risk_status.status|default('normal') }}" id="account-risk-badge" role="status" title="{{ risk_status.reason|default('', true) }}" data-status-label="{{ risk_status.status_label|default('正常') }}"{% if risk_status.freeze_until_ms %} data-freeze-until-ms="{{ risk_status.freeze_until_ms }}"{% endif %}>{{ risk_status.status_label|default('正常') }}</span>
|
||||||
</div>
|
</div>
|
||||||
{% include 'instance_theme_toggle.html' %}
|
{% include 'instance_theme_toggle.html' %}
|
||||||
<button type="button" class="btn-secondary btn-sm instance-header-refresh-funds" id="settings-refresh-funds" title="从交易所拉取最新资金">刷新资金</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="instance-header-stats-wrap instance-desktop-only">
|
<div class="instance-header-stats-wrap instance-desktop-only">
|
||||||
|
|||||||
Reference in New Issue
Block a user