From 26691c699a8c60bf797b3b1eef9ae2dd3189691a Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Thu, 14 Mar 2024 17:34:58 +0000 Subject: [PATCH] chore: Confirm close permissions modal (#3561) --- frontend/web/components/EditPermissions.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/web/components/EditPermissions.tsx b/frontend/web/components/EditPermissions.tsx index ec97e5011a7b..6cb330b71740 100644 --- a/frontend/web/components/EditPermissions.tsx +++ b/frontend/web/components/EditPermissions.tsx @@ -263,6 +263,7 @@ const _EditPermissionsModal: FC = forwardRef( `${level.charAt(0).toUpperCase() + level.slice(1)} permissions Saved`, ) permissionChanged?.() + setInterceptClose(null) onSave?.() setSaving(false) if (editPermissionsFromSettings) { @@ -420,6 +421,12 @@ const _EditPermissionsModal: FC = forwardRef( entityPermissions, ) .then(() => { + setInterceptClose(null) + toast( + `${ + level.charAt(0).toUpperCase() + level.slice(1) + } Permissions Saved`, + ) onSave && onSave() close() })