Hide the selection grid elements when selection is not allowed
authorMike Rylander <mrylander@gmail.com>
Tue, 29 Mar 2022 19:11:09 +0000 (15:11 -0400)
committerJane Sandberg <sandbergja@gmail.com>
Thu, 13 Oct 2022 16:04:01 +0000 (09:04 -0700)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html

index 656ab99..492a583 100644 (file)
@@ -37,6 +37,8 @@
   <!-- push everything else to the right -->
   <div class="flex-1"></div>
 
+  <ng-container *ngIf="!gridContext.disableSelect">
+
   <div class="font-sm font-italic d-flex flex-column-reverse mr-2">
     {{gridContext.getSelectedRows().length}} selected
   </div>
@@ -52,6 +54,8 @@
     </div>
   </div>
 
+  </ng-container><!-- if disableSelect -->
+
   <ng-container *ngIf="!gridContext.disablePaging">
 
   <button [disabled]="gridContext.pager.isFirstPage()" type="button"