mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-14 10:58:58 -04:00
Add a flash message when a user saves whitelist
I saw users in research going back into the whitelist to check that it had saved because there’s no feedback. This commit adds a flash message to confirm that the whitelist was saved OK.
This commit is contained in:
@@ -40,6 +40,7 @@ def whitelist(service_id):
|
||||
'email_addresses': list(filter(None, form.email_addresses.data)),
|
||||
'phone_numbers': list(filter(None, form.phone_numbers.data))
|
||||
})
|
||||
flash('Whitelist updated', 'default_with_tick')
|
||||
return redirect(url_for('.api_integration', service_id=service_id))
|
||||
if not form.errors:
|
||||
form.populate(**service_api_client.get_whitelist(service_id))
|
||||
|
||||
Reference in New Issue
Block a user