diff --git a/script.js b/script.js index 8487626..f6f934b 100644 --- a/script.js +++ b/script.js @@ -1166,7 +1166,7 @@ function renderTickets() { ttbody.innerHTML = filtered.map(t => { const lastType = t.last_message_type === 'reply_out' ? '→' : (t.last_message_type === 'note' ? '📝' : '←'); const typeLabel = ticketTypeLabels[t.type] || 'Muu'; - const rowClass = t.status === 'kasittelyssa' ? 'ticket-row-active' : (t.priority === 'urgent' ? 'ticket-row-urgent' : (t.priority === 'tärkeä' ? 'ticket-row-important' : '')); + const rowClass = t.priority === 'urgent' ? 'ticket-row-urgent' : (t.priority === 'tärkeä' ? 'ticket-row-important' : (t.status === 'kasittelyssa' ? 'ticket-row-active' : '')); const checked = bulkSelectedIds.has(t.id) ? 'checked' : ''; const companyBadge = multiCompany && t.company_name ? `${esc(t.company_name)} ` : ''; const prioBadge = t.priority === 'urgent' ? '🚨 ' : (t.priority === 'tärkeä' ? '⚠️ ' : '');