瀏覽代碼

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

Vijayakrishnan Krishnan 4 年之前
父節點
當前提交
081d52f97d
共有 1 個文件被更改,包括 4 次插入3 次删除
  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);