Sfoglia il codice sorgente

Leftnav note sections - prevent multi-clicks

Vijayakrishnan Krishnan 4 anni fa
parent
commit
5872571bdb
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      resources/views/app/patient/note/dashboard.blade.php

+ 2 - 2
resources/views/app/patient/note/dashboard.blade.php

@@ -675,7 +675,7 @@
                 <div class="d-flex pr-1 align-items-center note-widget-item c-pointer"
                      :title="section.title + ' - Click to remove'"
                      v-if="section.used"
-                     v-on:click.prevent="remove(section.section_uid)">
+                     v-on:click.once="remove(section.section_uid)">
                     <span class="mx-2">
                         <a class="font-12 text-secondary" href="#">
                             <i class="fa fa-minus-circle"></i>
@@ -688,7 +688,7 @@
                 <div class="d-flex pr-1 align-items-center note-widget-item c-pointer"
                      :title="section.title + ' - Click to add'"
                      v-if="!section.used"
-                     v-on:click.prevent="add(section.uid, section.internal_name)">
+                     v-on:click.once="add(section.uid, section.internal_name)">
                     <span class="mx-2">
                         <a class="font-12" href="#">
                             <i class="fa fa-plus-circle"></i>