badges on the right, evolution api sender

This commit is contained in:
Lucas Tettamanti
2026-01-26 01:21:08 -03:00
parent e85afab3e6
commit 53293ce9b3
13 changed files with 422 additions and 51 deletions

View File

@@ -127,7 +127,7 @@ class TakeoversCrud extends HTMLElement {
this.loadProducts();
// Refresh cuando se recibe evento SSE de nuevo takeover
this._unsubSse = on("sse:takeover", () => this.load());
this._unsubSse = on("takeover:created", () => this.load());
}
disconnectedCallback() {
@@ -298,11 +298,6 @@ class TakeoversCrud extends HTMLElement {
</div>
</div>
<div class="field" style="flex:1;">
<label>Tu respuesta (se enviara como el bot)</label>
<textarea id="responseInput" placeholder="Ej: Te anoto 2kg de vacío. ¿Algo más?"></textarea>
</div>
<div class="alias-section">
<h4>Agregar Alias (opcional)</h4>
<div class="checkbox-row">
@@ -320,6 +315,11 @@ class TakeoversCrud extends HTMLElement {
</div>
</div>
<div class="field" style="flex:1;">
<label>Tu respuesta (se enviara como el bot)</label>
<textarea id="responseInput" placeholder="Ej: Te anoto 2kg de vacío. ¿Algo más?"></textarea>
</div>
<div class="actions">
<button id="respondBtn">Enviar Respuesta</button>
<button id="cancelBtn" class="danger">Cancelar Takeover</button>