Add success banner
- The banner does not display which members were updated
This commit is contained in:
parent
9f266ea4e4
commit
1759732d38
@ -111,6 +111,7 @@ def update_team(application_id):
|
|||||||
app_role = ApplicationRoles.get(member.data["user_id"], application.id)
|
app_role = ApplicationRoles.get(member.data["user_id"], application.id)
|
||||||
new_perms = [perm for perm in member.data["permission_sets"] if perm != ""]
|
new_perms = [perm for perm in member.data["permission_sets"] if perm != ""]
|
||||||
ApplicationRoles.update_permission_sets(app_role, new_perms)
|
ApplicationRoles.update_permission_sets(app_role, new_perms)
|
||||||
|
flash("updated_application_members_permissions")
|
||||||
|
|
||||||
return redirect(
|
return redirect(
|
||||||
url_for(
|
url_for(
|
||||||
|
@ -168,6 +168,13 @@ MESSAGES = {
|
|||||||
""",
|
""",
|
||||||
"category": "success",
|
"category": "success",
|
||||||
},
|
},
|
||||||
|
"updated_application_members_permissions": {
|
||||||
|
"title_template": translate("flash.success"),
|
||||||
|
"message_template": """
|
||||||
|
<p>{{ "flash.updated_application_members_permissions" | translate }}</p>
|
||||||
|
""",
|
||||||
|
"category": "success",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,6 +72,7 @@ flash:
|
|||||||
portfolio_home: Go to my portfolio home page
|
portfolio_home: Go to my portfolio home page
|
||||||
success: Success!
|
success: Success!
|
||||||
new_application_member: 'You have successfully invited {user_name} to the team.'
|
new_application_member: 'You have successfully invited {user_name} to the team.'
|
||||||
|
updated_application_members_permissions: 'You have successfully updated member permissions.'
|
||||||
footer:
|
footer:
|
||||||
about_link_text: Joint Enterprise Defense Infrastructure
|
about_link_text: Joint Enterprise Defense Infrastructure
|
||||||
browser_support: JEDI Cloud supported on these web browsers
|
browser_support: JEDI Cloud supported on these web browsers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user