Update flash messages for portfolio invites to match application invite messages.
Use None instead of an empty string for titles and messages in flash alerts.
This commit is contained in:
@@ -65,7 +65,7 @@ def resend_invitation(portfolio_id, portfolio_token):
|
||||
inviter_name=g.current_user.full_name,
|
||||
token=invite.token,
|
||||
)
|
||||
flash("resend_portfolio_invitation", user_name=invite.user_name)
|
||||
flash("resend_portfolio_invitation", email=invite.email)
|
||||
else:
|
||||
user_name = f"{form['user_data']['first_name'].data} {form['user_data']['last_name'].data}"
|
||||
flash("resend_portfolio_invitation_error", user_name=user_name)
|
||||
|
@@ -29,7 +29,7 @@ MESSAGES = {
|
||||
"category": "error",
|
||||
},
|
||||
"application_invite_resent": {
|
||||
"title": "",
|
||||
"title": None,
|
||||
"message": "flash.application_invite.resent.message",
|
||||
"category": "success",
|
||||
},
|
||||
@@ -90,7 +90,7 @@ MESSAGES = {
|
||||
},
|
||||
"insufficient_funds": {
|
||||
"title": "flash.task_order.insufficient_funds.title",
|
||||
"message": "flash.task_order.insufficient_funds.message",
|
||||
"message": None,
|
||||
"category": "warning",
|
||||
},
|
||||
"logged_out": {
|
||||
@@ -104,13 +104,13 @@ MESSAGES = {
|
||||
"category": "warning",
|
||||
},
|
||||
"new_application_member": {
|
||||
"title": None,
|
||||
"title": "flash.new_application_member.title",
|
||||
"message": "flash.new_application_member.message",
|
||||
"category": "success",
|
||||
},
|
||||
"new_portfolio_member": {
|
||||
"title": "flash.success",
|
||||
"message": "flash.new_portfolio_member",
|
||||
"title": "flash.new_portfolio_member.title",
|
||||
"message": "flash.new_portfolio_member.message",
|
||||
"category": "success",
|
||||
},
|
||||
"portfolio_member_removed": {
|
||||
@@ -124,7 +124,7 @@ MESSAGES = {
|
||||
"category": "success",
|
||||
},
|
||||
"resend_portfolio_invitation": {
|
||||
"title": "flash.portfolio_invite.resent.title",
|
||||
"title": None,
|
||||
"message": "flash.portfolio_invite.resent.message",
|
||||
"category": "success",
|
||||
},
|
||||
|
Reference in New Issue
Block a user