From: Jane Sandberg Date: Mon, 15 Apr 2019 22:45:52 +0000 (-0700) Subject: LP1816475: Fixes to granularity handling in create reservations X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0ec66f85f61e669d3caac2dcaaa884bc60a8c409;p=working%2FEvergreen.git LP1816475: Fixes to granularity handling in create reservations Signed-off-by: Jane Sandberg --- 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 bcb37261c8..8f08c20c8d 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 @@ -85,7 +85,7 @@ - + { this.multiday = true; this.store.setItem('eg.booking.create.multiday', true); - this.setGranularity(); this.fetchData(); }; this.handleSingleDayReservation = () => { this.multiday = false; this.store.setItem('eg.booking.create.multiday', false); - this.setGranularity(); this.handleDateChange(new Date()); }; @@ -250,14 +248,13 @@ export class CreateReservationComponent implements OnInit, AfterViewInit { }; this.minuteStep = () => { - return (this.granularity < 60) ? this.granularity : 15; + return (this.granularity < 60) ? this.granularity : 30; }; } ngAfterViewInit() { this.dateLimiters.forEach((dl) => dl.initialDate = new Date()); - this.setGranularity(); this.fetchData(); this.openTheDialog = (rows: IdlObject[]) => { @@ -351,6 +348,7 @@ export class CreateReservationComponent implements OnInit, AfterViewInit { } fetchData () { + this.setGranularity(); this.resources = []; let where = {'owner': this.owningLibraries};