From 8de44d803d90294fcca7cd1bfb2bf22e246f1e27 Mon Sep 17 00:00:00 2001 From: naterfute Date: Fri, 23 Jan 2026 02:36:45 -0800 Subject: [PATCH] fixes: #42 --- .../components/server/network/AllocationRow.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/resources/scripts/components/server/network/AllocationRow.tsx b/resources/scripts/components/server/network/AllocationRow.tsx index 8eb08c878..3476ec9d5 100644 --- a/resources/scripts/components/server/network/AllocationRow.tsx +++ b/resources/scripts/components/server/network/AllocationRow.tsx @@ -90,8 +90,7 @@ const AllocationRow = ({ allocation }: Props) => { }; const deleteAllocation = () => { - if (!confirm('Are you sure you want to delete this allocation?')) return; - + setShowDeleteDialog(false); clearFlashes(); setDeleteLoading(true); @@ -202,7 +201,7 @@ const AllocationRow = ({ allocation }: Props) => { setShowDeleteDialog(true)} disabled={allocation.isDefault || deleteLoading} title={ allocation.isDefault ? 'Cannot delete the primary allocation' : 'Delete this allocation' @@ -218,6 +217,15 @@ const AllocationRow = ({ allocation }: Props) => { + setShowDeleteDialog(false)} + title={'Delete Allocation'} + confirm={'Delete'} + onConfirmed={deleteAllocation} + > + Are you sure you want to delete this allocation? This action cannot be undone. + ); };