From eab1d134b20dc193238ecb13e46b6cf13a1ba680 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 7 Oct 2016 15:06:47 +0100 Subject: [PATCH] Add a flash message when a user saves whitelist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- app/main/views/api_keys.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main/views/api_keys.py b/app/main/views/api_keys.py index a4e3a2f17..2e23273e2 100644 --- a/app/main/views/api_keys.py +++ b/app/main/views/api_keys.py @@ -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))