Ver Fonte

Go to patient's intake page only "after" joining the call

Vijayakrishnan Krishnan há 4 anos atrás
pai
commit
081d52f97d
1 ficheiros alterados com 4 adições e 3 exclusões
  1. 4 3
      resources/views/app/video/call.blade.php

+ 4 - 3
resources/views/app/video/call.blade.php

@@ -119,9 +119,6 @@
                                 self.clientUid = _data.data;
                                 self.videoActive = true;
                                 self.startOpenTokSession();
-
-                                // navigate to this patient on LHS
-                                window.top.openInLHS('/patients/view/' + self.clientUid + '/intake', true, false);
                             }
                         }
                     }, 'json');
@@ -420,6 +417,10 @@
                     })
                         .done(function (_data) {
                             console.log(_data);
+
+                            // navigate to this patient on LHS
+                            window.top.openInLHS('/patients/view/' + self.clientUid + '/intake', true, false);
+
                         })
                         .fail(function (_data) {
                             console.warn(_data);