cursor bot update
This commit is contained in:
parent
88bd6b239d
commit
4bb40f2cec
1 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue