Update route to catch error when app name uniqueness is violated and display a error message

This commit is contained in:
leigh-mil
2019-12-13 16:08:22 -05:00
parent 22dd5d7b85
commit ffbf612290
4 changed files with 53 additions and 10 deletions

View File

@@ -64,6 +64,11 @@ MESSAGES = {
"message_template": "You have successfully updated the permissions for {{ user_name }}",
"category": "success",
},
"application_name_error": {
"title_template": "",
"message_template": """{{ 'flash.application.name_error.message' | translate({ 'name': name }) }}""",
"category": "error",
},
"ccpo_user_added": {
"title_template": translate("flash.success"),
"message_template": "You have successfully given {{ user_name }} CCPO permissions.",