mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Waiting page shows correct messages
This commit is contained in:
@@ -422,8 +422,19 @@ def service_add_email_reply_to(service_id):
|
||||
@login_required
|
||||
@user_has_permissions('manage_service')
|
||||
def verify_reply_to_address(service_id, notification_id):
|
||||
notification = notification_api_client.get_notification(current_app.config["NOTIFY_SERVICE_ID"], notification_id)
|
||||
verification_status = "pending"
|
||||
if notification["status"] == "delivered":
|
||||
verification_status = "success"
|
||||
if notification["status"] in ["failed", "permanent-failure", "technical-failure", "temporary-failure"]:
|
||||
verification_status = "failure"
|
||||
# also include condition for when lots of time passes
|
||||
return render_template(
|
||||
'views/service-settings/email-reply-to/verify.html'
|
||||
'views/service-settings/email-reply-to/verify.html',
|
||||
reply_to_email_address=notification["to"],
|
||||
service_id=service_id,
|
||||
notification_id=notification_id,
|
||||
verification_status=verification_status
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user