Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
<eg-grid-toolbar-action label="Return Selected" i18n-label [action]="returnSelected" [disableOnRows]="returnNotAppropriate"></eg-grid-toolbar-action>
<eg-grid-toolbar-action label="View Reservations for This Patron" i18n-label [action]="viewByPatron" [disableOnRows]="notOnePatronSelected"></eg-grid-toolbar-action>
<eg-grid-toolbar-action label="View Reservations for This Resource" i18n-label [action]="viewByResource" [disableOnRows]="notOneResourceSelected"></eg-grid-toolbar-action>
+ <eg-grid-toolbar-button *ngIf="!status" label="Create New Reservation" i18n-label [action]="redirectToCreate"></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" [sortable]="false"></eg-grid-column>
endTimeShouldBeAfterStartTime: (fieldName: string, value: Moment, record: IdlObject) => string;
handleRowActivate: (row: IdlObject) => void;
+ redirectToCreate: () => void;
reloadGrid: () => void;
this.showEditDialog(row);
}
};
+
+ this.redirectToCreate = () => {
+ this.router.navigate(['/staff', 'booking', 'create_reservation']);
+ };
}
showEditDialog(idlThing: IdlObject) {