up
This commit is contained in:
+4
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user