From 45ba87ed8c698c475459d627245a592539c98d8e Mon Sep 17 00:00:00 2001 From: Rohan Chakraborty Date: Fri, 30 Oct 2026 12:09:18 +0530 Subject: [PATCH] fix(sdk): add a cancel button to the delete domain dialog The delete domain dialog had only the delete button, so users could not go back to the security page without a refresh. Add a Cancel button that closes the dialog, the same as the delete organization dialog. Cancel stays visible while the domain loads and is disabled while the delete is pending. --- .../security/components/delete-domain-dialog.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web/sdk/client/views/security/components/delete-domain-dialog.tsx b/web/sdk/client/views/security/components/delete-domain-dialog.tsx index 4a4e692096..9a5de00c24 100644 --- a/web/sdk/client/views/security/components/delete-domain-dialog.tsx +++ b/web/sdk/client/views/security/components/delete-domain-dialog.tsx @@ -188,6 +188,18 @@ function DeleteDomainContent({ + + Cancel + + } + /> {isDomainLoading ? ( ) : (