Преглед на файлове

X patient(s) in the queue - plural fix

Vijayakrishnan преди 4 години
родител
ревизия
79dad02e67
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      resources/views/app/video/call.blade.php

+ 5 - 2
resources/views/app/video/call.blade.php

@@ -81,8 +81,11 @@
     </div>
 
     <div class="border-top patient-queue mcp-theme-1" id="queueComponent">
-        <div class="bg-secondary text-white font-weight-bold text-center py-1">
-            @{{ items.length }} patients in the queue
+        <div class="bg-secondary text-white font-weight-bold text-center py-1" v-if="items.length > 0">
+            @{{ items.length }} patient@{{ items.length > 1 ? 's' : '' }} in the queue
+        </div>
+        <div class="bg-secondary text-white font-weight-bold text-center py-1" v-if="items.length === 0">
+            No patients in the queue
         </div>
         <div class="d-flex align-items-center mt-1">
             <div v-for="item in items">