From bd000649e3561dcff2fda0fa501b17c4688a31a0 Mon Sep 17 00:00:00 2001 From: Pantry Lead Agent Date: Wed, 25 Feb 2026 01:23:40 +0000 Subject: [PATCH] feat: add low-stock threshold field to EditItemModal (#67) --- app/components/inventory/EditItemModal.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/components/inventory/EditItemModal.vue b/app/components/inventory/EditItemModal.vue index 2d4e270..baa2115 100644 --- a/app/components/inventory/EditItemModal.vue +++ b/app/components/inventory/EditItemModal.vue @@ -55,6 +55,21 @@ /> + + + + + props.item, (newItem) => { form.quantity = Number(newItem.quantity) form.unit_id = newItem.unit_id form.expiry_date = newItem.expiry_date || '' + form.low_stock_threshold = newItem.low_stock_threshold || null form.notes = newItem.notes || '' isOpen.value = true } @@ -168,6 +185,7 @@ const handleSubmit = async () => { quantity: form.quantity, unit_id: form.unit_id, expiry_date: form.expiry_date || null, + low_stock_threshold: form.low_stock_threshold, notes: form.notes.trim() || null })