LP#1928275: fix the Angular "Copy Queue To Bucket"
authorGalen Charlton <gmc@equinoxOLI.org>
Wed, 25 Aug 2021 22:21:03 +0000 (18:21 -0400)
committerJason Boyer <JBoyer@equinoxOLI.org>
Thu, 23 Sep 2021 18:52:33 +0000 (14:52 -0400)
Similar to bug 1934184, a blank routerLink on an anchor no longer
causes an ngbModal to open via a click handler.

To test
-------
[1] Create a MARC import bib queue that has at least one imported
    record it.
[2] Click the "Copy Queue To Bucket" link from the queue inspection page
    and observe that nothing happens.
[3] Apply the patch and repeat step 2. This time, the add-to-bucket dialog
    should appear.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mary Llewellyn <mllewell@biblio.org>
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.html

index eb1a24f..9f99412 100644 (file)
@@ -78,7 +78,7 @@
               <eg-bucket-dialog #bucketDialog bucketClass="biblio" [fromBibQueue]="queueId">
               </eg-bucket-dialog>
               <div class="flex-1">
-                <a [routerLink]="" (click)="bucketDialog.open({size:'lg'})" i18n>
+                <a href="javascript:;" (click)="bucketDialog.open({size:'lg'})" i18n>
                   Copy Queue To Bucket
                 </a>
               </div>