<span class="input-group-prepend">
<label class="input-group-text" for="granularity" i18n>Granularity</label>
</span>
- <eg-combobox (onChange)="changeGranularity($event)" [startId]="granularity">
+ <eg-combobox (onChange)="changeGranularity($event)" [startId]="granularity ? granularity : 30">
<eg-combobox-entry entryId="15" entryLabel="15 minutes"
i18n-entryLabel></eg-combobox-entry>
<eg-combobox-entry entryId="30" entryLabel="30 minutes"
this.handleMultiDayReservation = () => {
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());
};
};
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[]) => {
}
fetchData () {
+ this.setGranularity();
this.resources = [];
let where = {'owner': this.owningLibraries};