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:
Chris Hill-Scott
2016-10-07 15:06:47 +01:00
parent 14c9f39342
commit eab1d134b2

View File

@@ -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))