UI dash fix

This commit is contained in:
Dobromir Popov
2025-07-29 17:49:25 +03:00
parent 3a532a1220
commit 5f7032937e

View File

@ -1532,19 +1532,7 @@ class CleanTradingDashboard:
logger.error(f"Error updating trading mode: {e}")
return "ERROR", "fw-bold text-danger"
# Cold Start Toggle
@self.app.callback(
Output('cold-start-display', 'children'),
Output('cold-start-display', 'className'),
[Input('cold-start-switch', 'value')]
)
def update_cold_start(switch_value):
if switch_value:
self.cold_start_enabled = True
return "Cold Start: ON", "badge bg-success"
else:
self.cold_start_enabled = False
return "Cold Start: OFF", "badge bg-secondary"
# Universal Model Toggle Callbacks - Dynamic for all models
self._setup_universal_model_callbacks()