diff --git a/atst/routes/applications/settings.py b/atst/routes/applications/settings.py index 8ea3b612..9fc13e2b 100644 --- a/atst/routes/applications/settings.py +++ b/atst/routes/applications/settings.py @@ -300,7 +300,11 @@ def create_member(application_id): token=invite.token, ) - flash("new_application_member", user_name=invite.user_name) + flash( + "new_application_member", + user_name=invite.user_name, + application_name=application.name, + ) except AlreadyExistsError: return render_template( diff --git a/atst/utils/flash.py b/atst/utils/flash.py index dfb0d324..da1bece8 100644 --- a/atst/utils/flash.py +++ b/atst/utils/flash.py @@ -77,7 +77,7 @@ MESSAGES = { "new_application_member": { "title_template": translate("flash.success"), "message_template": """ -
{{ "flash.new_application_member" | translate({ "user_name": user_name }) }}
+{{ "flash.new_application_member" | translate({ "user_name": user_name, "application_name": application_name }) }}
""", "category": "success", }, diff --git a/translations.yaml b/translations.yaml index 45696d1c..f3001cef 100644 --- a/translations.yaml +++ b/translations.yaml @@ -111,7 +111,7 @@ flash: new_ppoc_message: 'You have successfully added {ppoc_name} as the primary point of contact. You are no longer the PPoC.' new_ppoc_title: Primary point of contact updated success: Success! - new_application_member: 'You have successfully invited {user_name} to the team.' + new_application_member: '{user_name} has been added to {application_name}. They will not have access until they accept the invitation e-mailed to them and CSP processing is complete.' updated_application_team_settings: 'You have updated the {application_name} team settings.' logged_out: Logged out footer: