cursor bot update

This commit is contained in:
Bill Richardson 2026-01-14 15:25:34 -05:00
parent 88bd6b239d
commit 4bb40f2cec

View file

@ -461,11 +461,11 @@ export default {
daysFromStart: null
};
},
gotoNextPage() {
async gotoNextPage() {
const maxPageIndex = Math.floor((this.daysLoaded - 1) / this.daysToAdd);
if (this.activePageIndex >= maxPageIndex) {
// do not go to next page right away if at end of loaded days
this.loadMoreDays(maxPageIndex, this.daysToAdd, this.initialDaysToLoad).then(() => {
await this.loadMoreDays(maxPageIndex, this.daysToAdd, this.initialDaysToLoad).then(() => {
this.daysLoaded += this.initialDaysToLoad;
this.activePageIndex += 1;
this.selectedDate = null;
@ -625,6 +625,8 @@ export default {
});
},
async setCalendarData(config = {}) {
const initialMql = window.matchMedia('(min-width: 1200px)');
this.isMobileView = !initialMql.matches;
config.initialShopTimeSlotsResponse.days.forEach((selectableDate) => {
const dateObjectToPush = {
date: selectableDate.date,