Răsfoiți Sursa

RHS (video) panel - show patient's name and link to patient

Vijayakrishnan Krishnan 4 ani în urmă
părinte
comite
461f031392

+ 4 - 0
resources/views/app/mc.blade.php

@@ -31,6 +31,10 @@
             $('#stag_mcp_rhs').attr('src', _url);
             return false;
         };
+        window.openInLHS = function(_url) {
+            $('#stag_mcp_lhs')[0].contentWindow.fastLoad(_url);
+            return false;
+        }
         window.ensureRHS = function() {
             if(!$('#stag_mcp_rhs').length) window.location.reload();
         };

+ 8 - 1
resources/views/app/video/call.blade.php

@@ -18,7 +18,14 @@
 
     <div id="proCallComponent">
 
-        <div class="d-flex align-items-center justify-content-center py-3 border-bottom">
+        @if($client)
+        <div v-show="videoActive" class="text-center py-2 border-bottom font-weight-normal mcp-theme-1">
+            <i class="fa fa-user-injured small mr-2"></i><a href="#" onclick="return window.top.openInLHS('/patients/view/{{$client->uid}}')">
+                <span class="font-weight-bold">{{ $client->displayName() }}</span>
+            </a>
+        </div>
+        @endif
+        <div v-show="!videoActive" class="align-items-center justify-content-center py-3 border-bottom" style="display: flex;">
 {{--            <span class="mr-3">--}}
 {{--                {{ $pro->name_display }} | PRO--}}
 {{--            </span>--}}