fix(ui): refresh positions on buy/sell log events

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mukan Erkin TÖRÜK 2026-04-19 20:56:46 +03:00
parent 85536093b5
commit 15b619efa0

View file

@ -630,7 +630,7 @@ function connectLogSSE() {
if (log.id <= lastLogId) return;
lastLogId = log.id;
appendLog(log);
if (log.level === 'trade') { loadPositions(); loadClosed(); }
if (log.level === 'buy' || log.level === 'sell' || log.level === 'trade') { loadPositions(); loadClosed(); }
});
logSource.onopen = () => {
document.getElementById('log-dot').style.background = 'var(--green)';