UI dash fix
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user