From: Jane Sandberg <sandbej@linnbenton.edu> Date: Mon, 9 Sep 2019 12:11:15 +0000 (-0700) Subject: LP1816475: Add a Create Reservation button to the Create Reservation screen X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c2f7da619c2edbe6306160db1fa9543f5f6b959e;p=evergreen%2Fequinox.git LP1816475: Add a Create Reservation button to the Create Reservation screen Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org> --- diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts index ae55c56f32..b9c1d30728 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts @@ -78,7 +78,7 @@ export class GridToolbarComponent implements OnInit { performButtonAction(button: GridToolbarButton) { const rows = this.gridContext.getSelectedRows(); - button.onClick.emit(); + button.onClick.emit(rows); if (button.action) { button.action(); } } diff --git a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html index 64bbdf84df..104e82d287 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html +++ b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html @@ -170,6 +170,7 @@ [rowFlairCallback]="resourceAvailabilityIcon" [disablePaging]="true" persistKey="disabled"> + <eg-grid-toolbar-button label="Create Reservation" i18n-label (onClick)="openTheDialog($event)"></eg-grid-toolbar-button> <eg-grid-toolbar-action label="Create Reservation" i18n-label (onClick)="openTheDialog($event)"></eg-grid-toolbar-action> <eg-grid-column path="time" [index]="true" name="Time" i18n-name [cellTemplate]="timeTemplate" ></eg-grid-column> <eg-grid-column *ngFor="let resource of resources" path="{{resource.barcode()}}" [cellTemplate]="reservationsTemplate" [disableTooltip]="true"></eg-grid-column>