From d82c52df260c3ea6bd3a640dd9f0c3ff35523060 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 28 Dec 2025 18:02:08 +0000 Subject: [PATCH] Fix wipe inventory by replacing AlertDialogAction with Button Co-authored-by: katosdev <7927609+katosdev@users.noreply.github.com> --- frontend/components/WipeInventoryDialog.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/frontend/components/WipeInventoryDialog.vue b/frontend/components/WipeInventoryDialog.vue index 7fc9502d..c4264fe5 100644 --- a/frontend/components/WipeInventoryDialog.vue +++ b/frontend/components/WipeInventoryDialog.vue @@ -54,9 +54,9 @@ {{ $t("global.cancel") }} - + @@ -67,7 +67,6 @@ import { useDialog } from "~/components/ui/dialog-provider"; import { AlertDialog, - AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, @@ -75,6 +74,7 @@ AlertDialogHeader, AlertDialogTitle, } from "@/components/ui/alert-dialog"; + import { Button } from "@/components/ui/button"; const { registerOpenDialogCallback, closeDialog, addAlert, removeAlert } = useDialog(); @@ -82,14 +82,12 @@ 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( @@ -105,7 +103,7 @@ ); function handleOpenChange(open: boolean) { - if (!open && !isConfirming.value) { + if (!open) { close(); } } @@ -116,7 +114,6 @@ } function confirm() { - isConfirming.value = true; const result = { wipeLabels: wipeLabels.value, wipeLocations: wipeLocations.value,