Przeglądaj źródła

No "regenerate cc" if opened directly

Vijayakrishnan 3 lat temu
rodzic
commit
90e6db162d

+ 2 - 0
resources/views/app/patient/problems-center.blade.php

@@ -721,6 +721,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
                     return false;
                 });
 
+            @if($patient->core_note_id !== $note->id)
             parentSegment.find('.regenerate-cc')
                 .off('click.regenerate-cc')
                 .on('click.regenerate-cc', function () {
@@ -743,6 +744,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
 
                     return false;
                 });
+            @endif
 
             initStagSuggest();