From 1944376a4e3bdcfc9970c5c3a781e524d8beeb66 Mon Sep 17 00:00:00 2001
From: Krish M <krish94@uab.edu>
Date: Thu, 2 Jun 2022 21:49:44 -0500
Subject: [PATCH] feat: add delay to modal on account create before redirecting
 to referrer

---
 app/templates/auth/SignUp.html | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app/templates/auth/SignUp.html b/app/templates/auth/SignUp.html
index c7303ab..26c1aaa 100644
--- a/app/templates/auth/SignUp.html
+++ b/app/templates/auth/SignUp.html
@@ -21,7 +21,11 @@
         });
 
         socket.on( 'account ready', function( msg ) {
-          window.location.replace('{{ referrer }}');
+          $('#myModal2 .modal-title').text("Account Creation Successful");
+          $('#myModal2 .modal-body').text("Redirecting...");
+          setTimeout(() => {
+            window.location.replace('{{ referrer }}');
+        }, 5000);
         });
 
         socket.on( 'account error', function( msg ) {
-- 
GitLab