Catch CSP exceptions and display a flash message with the error

This commit is contained in:
leigh-mil
2019-11-19 16:33:58 -05:00
parent 3f146c7da8
commit 4cba564c97
2 changed files with 20 additions and 6 deletions

View File

@@ -54,6 +54,11 @@ MESSAGES = {
"message_template": "You have successfully deleted {{ user_name }} from {{ application_name }}",
"category": "success",
},
"application_member_update_error": {
"title_template": "{{ user_name }} could not be updated",
"message_template": "An unexpected problem occurred with your request, please try again. If the problem persists, contact an administrator.",
"category": "error",
},
"application_member_updated": {
"title_template": "Team member updated",
"message_template": "You have successfully updated the permissions for {{ user_name }}",