Private
Public Access
fix: arreglado paginador
This commit is contained in:
1 parent
aac88856ac
commit
3af069e9e8
8 files changed
+76
-43
No files matched your search
@@ -11,6 +11,7 @@
|
||||
}: { open: boolean; onClose: Function; repuesto: ActualizarRepuestoDto } = $props();
|
||||
|
||||
let error = $state('');
|
||||
let enviando = $state(false);
|
||||
|
||||
function handleClose() {
|
||||
reset();
|
||||
@@ -33,6 +34,8 @@
|
||||
id="actualizarRepuestoForm"
|
||||
onsubmit={async (e) => {
|
||||
e.preventDefault();
|
||||
if (enviando) return;
|
||||
enviando = true;
|
||||
error = '';
|
||||
if (repuesto.id == 0) error += 'Falta id';
|
||||
if (repuesto.descripcion == '') error += 'Falta Descripcion, ';
|
||||
@@ -47,6 +50,7 @@
|
||||
invalidate('repuestos:load');
|
||||
handleClose();
|
||||
}
|
||||
enviando = false;
|
||||
}}
|
||||
>
|
||||
<Modal
|
||||
@@ -55,6 +59,7 @@
|
||||
size={'lg'}
|
||||
modalHeading={`Editar Repuesto: ${repuesto.id}`}
|
||||
primaryButtonText="Editar"
|
||||
primaryButtonDisabled={enviando}
|
||||
secondaryButtonText="Cerrar"
|
||||
on:click:button--secondary={handleClose}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user