Skip to content

Commit

Permalink
chore: Confirm close permissions modal (#3561)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Mar 14, 2024
1 parent 3dd8b06 commit 26691c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/web/components/EditPermissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ const _EditPermissionsModal: FC<EditPermissionModalType> = forwardRef(
`${level.charAt(0).toUpperCase() + level.slice(1)} permissions Saved`,
)
permissionChanged?.()
setInterceptClose(null)
onSave?.()
setSaving(false)
if (editPermissionsFromSettings) {
Expand Down Expand Up @@ -420,6 +421,12 @@ const _EditPermissionsModal: FC<EditPermissionModalType> = forwardRef(
entityPermissions,
)
.then(() => {
setInterceptClose(null)
toast(
`${
level.charAt(0).toUpperCase() + level.slice(1)
} Permissions Saved`,
)
onSave && onSave()
close()
})
Expand Down

0 comments on commit 26691c6

Please sign in to comment.