este es el trabajo de hoy

This commit is contained in:
2025-02-01 02:29:34 -03:00
parent c0bc97fb64
commit af231344b6
11 changed files with 240 additions and 5 deletions

View File

@@ -6,12 +6,14 @@
let { id, ubicacion, tipo, letra, piso,canthabitaciones, servicios, btnbaja = "Baja", monto, iddivisa = 0 } = $props();
import { urlG } from "../stores/urlStore";
import ModalPublicarPropiedadParaVenta from "./ModalPublicarPropiedadParaVenta.svelte";
let modal: boolean = $state(false);
let modalpayload: string = $state("");
let modificar: boolean = $state(false);
let showPublicarVenta: boolean = $state(false);
function setmod(){
modificar = !modificar;
}
@@ -35,6 +37,13 @@
console.error(e);
}
}
function setventa() {
showPublicarVenta = true;
}
async function sendMod() {
}
</script>
<tr in:fade>
@@ -53,9 +62,10 @@
{/if}
</td>
<td>{monto}</td>
<td class="text-end">
<button class="btn btn-outline-secondary btn-sm" onclick={()=> setmod()}>Modificar</button>
<button class="btn btn-outline-danger btn-sm" onclick={() => BajaPropiedad()}>{btnbaja}</button>
<td class="d-flex justify-content-between gap-2">
<button class="btn btn-secondary btn-sm" onclick={()=> setmod()}>Modificar</button>
<button class="btn btn-secondary btn-sm" onclick={()=> setventa()}>Publicar a venta</button>
<button class="btn btn-danger btn-sm" onclick={() => BajaPropiedad()}>{btnbaja}</button>
</td>
</tr>
{#if modal}
@@ -68,3 +78,7 @@
</td>
</tr>
{/if}
{#if showPublicarVenta}
<ModalPublicarPropiedadParaVenta onClose={()=>!!(showPublicarVenta = false)} onConfirm={sendMod}/>
{/if}