Browse Source

FDB Playground - trigger allergy refresh on all changes

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
563f0f6db0
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      resources/views/app/fdb-pg/fdb-rx.blade.php

+ 4 - 2
resources/views/app/fdb-pg/fdb-rx.blade.php

@@ -33,7 +33,7 @@
                                        fdb-allergy-suggest-search :fdb-suggest-group="index">
                             </td>
                             <td class="text-center">
-                                <a href="#" v-on:click.prevent="allergies.splice(index, 1)"><i class="fa fa-trash-alt text-danger"></i></a>
+                                <a href="#" v-on:click.prevent="allergies.splice(index, 1); showDrugAllergyNotes();"><i class="fa fa-trash-alt text-danger"></i></a>
                             </td>
                         </tr>
                         </tbody>
@@ -125,7 +125,7 @@
 
                     </td>
                     <td class="text-center">
-                        <a href="#" v-on:click.prevent="rx.splice(index, 1)"><i class="fa fa-trash-alt text-danger"></i></a>
+                        <a href="#" v-on:click.prevent="rx.splice(index, 1); showDrugAllergyNotes();"><i class="fa fa-trash-alt text-danger"></i></a>
                     </td>
                 </tr>
                 </tbody>
@@ -508,6 +508,8 @@
 
                             $(document).trigger('fdb-allergy-changed', [group]);
 
+                            vueApp.showDrugAllergyNotes();
+
                             return false;
                         });