creo que estoy con esto

This commit is contained in:
2025-01-20 21:35:13 -03:00
parent d5cb65403e
commit 6d04fdb48a
7 changed files with 168 additions and 21 deletions
+10 -2
View File
@@ -130,6 +130,11 @@
Selmens = {...mensaje};
return;
}
if (mensaje.accion === "Notificacion Inquilino") {
Selmens = {...mensaje};
return;
}
}
async function obtenerListaGarantes(idcontrato: number) {
@@ -422,6 +427,8 @@
<ModalCheckYContrato {garantes} men={Selmens} onCancel={handleCancelPrecontrato} onClose={() => (Selmens.accion = "")} onConfirm={handleEnviarmensaje4}/>
{:else if Selmens.accion == "Aceptar Contrato"}
<ModalVeryAceptarContrato onClose={() => (Selmens.accion = "")} onConfirm={handleAceptarContrato} onCancel={handlerechazarcontrato} getContrato={ObtenerContrato} men={Selmens}/>
{:else if Selmens.accion == "Notificacion Inquilino"}
<ModalEstatico payload={Selmens.mensaje} close={()=> !!(Selmens.accion = "") }/>
{/if}
<div class="container">
@@ -483,9 +490,10 @@
</button>
{/if}
{#if (men.accion === "ContratoCancelado" || men.accion === "Rechazo Contrato" ||
men.accion === "Aceptado Contrato") && mostrarleidos == false}
men.accion === "Aceptado Contrato" || men.accion === "Notificacion Inquilino"
) && mostrarleidos == false}
<button
class="btn btn-outline-danger"
class="btn btn-outline-danger btn-sm"
onclick={() => marcarleido(men.fecha, localStorage.getItem("email")|| "", men)}>
Marcar Leido
</button>