A continuation of HomeBox the inventory and organization system built for the Home User
Fix callback order and restore isConfirming flag
copilot-swe-agent[bot]5cd7792701c2
diff --git a/frontend/components/WipeInventoryDialog.vue b/frontend/components/WipeInventoryDialog.vueindex c4264fe5..fe082cef 100644--- a/frontend/components/WipeInventoryDialog.vue+++ b/frontend/components/WipeInventoryDialog.vue@@ -82,12 +82,14 @@const wipeLabels = ref(false);const wipeLocations = ref(false);const wipeMaintenance = ref(false);+ const isConfirming = ref(false);registerOpenDialogCallback(DialogID.WipeInventory, () => {dialog.value = true;wipeLabels.value = false;wipeLocations.value = false;wipeMaintenance.value = false;+ isConfirming.value = false;});watch(@@ -103,7 +105,7 @@);function handleOpenChange(open: boolean) {- if (!open) {+ if (!open && !isConfirming.value) {close();}}@@ -114,12 +116,13 @@}function confirm() {+ isConfirming.value = true;const result = {wipeLabels: wipeLabels.value,wipeLocations: wipeLocations.value,wipeMaintenance: wipeMaintenance.value,};- dialog.value = false;closeDialog(DialogID.WipeInventory, result);+ dialog.value = false;}</script>