From 0ec66f85f61e669d3caac2dcaaa884bc60a8c409 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Mon, 15 Apr 2019 15:45:52 -0700 Subject: [PATCH] LP1816475: Fixes to granularity handling in create reservations Signed-off-by: Jane Sandberg --- .../src/eg2/src/app/staff/booking/create-reservation.component.html | 2 +- .../src/eg2/src/app/staff/booking/create-reservation.component.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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}; -- 2.11.0