瀏覽代碼

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">