Просмотр исходного кода

Disable incorrect MRV update toast

Vijayakrishnan 3 лет назад
Родитель
Сommit
2e55d80da3

+ 4 - 2
resources/views/app/patient/segment-templates/medrisk_vigilence/summary.blade.php

@@ -103,9 +103,11 @@ $hasMRVData = false;
 <script>
     (function() {
         window.segmentInitializers.<?= $segment->segmentTemplate->internal_name ?> = function() {
-            @if(!!$hasMRVData)
+            // this is incorrect - gets saved in summary html and always fires!
+            // toast should be shown "only" on actual refresh of MRV
+            {{--@if(!!$hasMRVData)
             toastr.info('Medrisk Vigilance Updated', null, { timeOut: 10000 });
-            @endif
+            @endif--}}
         };
     }).call(window);
 </script>