LP1816475: Add action buttons to Pickup and Return reservation screens
authorJane Sandberg <sandbej@linnbenton.edu>
Mon, 9 Sep 2019 21:52:16 +0000 (14:52 -0700)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 21 Oct 2019 19:43:00 +0000 (15:43 -0400)
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.html

index a0579b5..b8b5b51 100644 (file)
   <eg-grid-toolbar-action label="View Item Status" i18n-label (onClick)="viewItemStatus($event)" [disableOnRows]="notOneCatalogedItemSelected"></eg-grid-toolbar-action>
   <eg-grid-toolbar-action label="View Reservations for This Resource" i18n-label (onClick)="viewByResource($event)" [disableOnRows]="notOneResourceSelected"></eg-grid-toolbar-action>
   <eg-grid-toolbar-button *ngIf="!status" label="Create New Reservation" i18n-label (onClick)="redirectToCreate($event)"></eg-grid-toolbar-button>
+  <eg-grid-toolbar-button *ngIf="'pickupReady' === status" label="Pick Up Selected" i18n-label
+    (onClick)="pickupSelected($event)" [disabled]="!grid.context.getSelectedRows().length">
+    </eg-grid-toolbar-button>
+  <eg-grid-toolbar-button *ngIf="'returnReady' === status" label="Return Selected" i18n-label
+    (onClick)="returnSelected($event)" [disabled]="!grid.context.getSelectedRows().length">
+    </eg-grid-toolbar-button>
+
 
   <eg-grid-column name="id" [hidden]="true" [index]="true" i18n-label label="ID" path="id"></eg-grid-column>
   <eg-grid-column label="Patron username" [hidden]="true" i18n-label path="usr.usrname"></eg-grid-column>