Add valueRef that will show in form on editing transfer
This commit is contained in:
parent
99ed7dd38b
commit
caedd31527
|
@ -92,6 +92,9 @@
|
||||||
const parts = transfer.date.split("T");
|
const parts = transfer.date.split("T");
|
||||||
mutateDate = parts[0];
|
mutateDate = parts[0];
|
||||||
selectedTime = parts[1].split("Z")[0];
|
selectedTime = parts[1].split("Z")[0];
|
||||||
|
if (valueRef) {
|
||||||
|
valueRef.value = NumberToFPA(transfer.value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function deleteTransfer(id: number) {
|
async function deleteTransfer(id: number) {
|
||||||
|
@ -122,6 +125,7 @@
|
||||||
const rawValue = target.value.replace(/[^0-9]/g, "");
|
const rawValue = target.value.replace(/[^0-9]/g, "");
|
||||||
currentTransfer.value = parseInt(rawValue || "0");
|
currentTransfer.value = parseInt(rawValue || "0");
|
||||||
target.value = NumberToFPA(currentTransfer.value);
|
target.value = NumberToFPA(currentTransfer.value);
|
||||||
|
let valueRef: HTMLInputElement | null = $state(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
const constructedTime = $derived(`${mutateDate}T${selectedTime}Z`);
|
const constructedTime = $derived(`${mutateDate}T${selectedTime}Z`);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user