Browse Source

Non-slim segment omega_xxx fix

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
e354634b6a
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      resources/views/app/patient/note/segment.blade.php

+ 3 - 1
resources/views/app/patient/note/segment.blade.php

@@ -1,5 +1,6 @@
 <?php $iName = $segment->segmentTemplate->internal_name; ?>
 <?php $isLSSegment = strpos($iName, 'lifestyle_') === 0; ?>
+<?php $isOmegaHistorySegment = strpos($iName, 'omega_history_') === 0; ?>
 
 <div class="border-bottom note-section visit-segment {{$note->is_signed_by_hcp ? '' : 'edit-trigger'}} {{strpos($iName, 'lifestyle_') === 0 && $iName !== 'lifestyle_general' ? 'zero-height' : ''}}"
      data-segment-uid="{{ $segment->uid }}"
@@ -136,8 +137,9 @@
         'plan_care_team',
         'intake_supplements',
         'plan_supplements',
+        'omega_'
     ];
-    if(!in_array($iName, $wizardPowered) && $iName !== 'ros') { ?>
+    if(!in_array($iName, $wizardPowered) && $iName !== 'ros' && $iName !== 'omega_ros' && !$isOmegaHistorySegment) { ?>
     <div class="d-none if-edit edit-container">
         {!! $segment->edit_html !!}
     </div>