This commit is contained in:
Lizandro Guarnizo
2026-01-22 13:56:51 -05:00
parent ff2fafa0bb
commit 4c0d379e90
4 changed files with 27 additions and 4 deletions
+4 -1
View File
@@ -341,9 +341,12 @@ class WhatsAppBotManager {
createConversationRow(conv) {
const tr = document.createElement('tr');
const attentionClass = conv.advisor_requested ? 'table-attention' : '';
tr.className = attentionClass;
const attentionBadge = conv.advisor_requested ? `<span class="badge bg-danger ms-1">¡Atención!</span>` : '';
tr.innerHTML = `
<td>
<div class="fw-bold">${conv.phone_number}</div>
<div class="fw-bold">${conv.phone_number} ${attentionBadge}</div>
<small class="text-muted">${conv.name || 'Sin nombre'}</small>
</td>
<td>${this.truncateText(conv.last_message, 50)}</td>