Pārlūkot izejas kodu

feat(conference): lower the redirect timeout after feedback submission (#2673)

master
Saúl Ibarra Corretgé 7 gadus atpakaļ
vecāks
revīzija
eb69fb69cb
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3
    2
      conference.js

+ 3
- 2
conference.js Parādīt failu

@@ -236,13 +236,14 @@ function maybeRedirectToWelcomePage(options) {
236 236
         }));
237 237
     }
238 238
 
239
-    // if Welcome page is enabled redirect to welcome page after 3 sec.
239
+    // if Welcome page is enabled redirect to welcome page after 3 sec, if
240
+    // there is a thank you message to be shown, 0.5s otherwise.
240 241
     if (config.enableWelcomePage) {
241 242
         setTimeout(
242 243
             () => {
243 244
                 APP.store.dispatch(redirectWithStoredParams('/'));
244 245
             },
245
-            3000);
246
+            options.showThankYou ? 3000 : 500);
246 247
     }
247 248
 }
248 249
 

Notiek ielāde…
Atcelt
Saglabāt