From 6dc9cf5a63d1636e7b445bd2ef3019920dc1d1b4 Mon Sep 17 00:00:00 2001 From: DiTus Date: Wed, 25 Feb 2026 22:17:57 +0100 Subject: [PATCH] Prevent TA panel refresh when changing timeframes - Removed automatic TA reload when switching timeframes - TA panel now only loads on initial page load and when manually refreshed - User must click Refresh button to update TA after timeframe change --- src/api/dashboard/static/js/ui/chart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/dashboard/static/js/ui/chart.js b/src/api/dashboard/static/js/ui/chart.js index ad905e8..ee334ea 100644 --- a/src/api/dashboard/static/js/ui/chart.js +++ b/src/api/dashboard/static/js/ui/chart.js @@ -580,7 +580,7 @@ async loadTA() { document.getElementById('priceChange').className = 'stat-value ' + (change >= 0 ? 'positive' : 'negative'); document.getElementById('dailyHigh').textContent = this.statsData.high_24h.toFixed(2); document.getElementById('dailyLow').textContent = this.statsData.low_24h.toFixed(2); - } +} } switchTimeframe(interval) { @@ -595,7 +595,7 @@ async loadTA() { this.allData.delete(interval); this.loadInitialData(); - this.loadTA(); + // Don't reload TA on timeframe switch - let user refresh manually window.clearSimulationResults?.(); window.updateTimeframeDisplay?.();