CASH-2378 fix to keep background from appearing loaded until multi location popup has finished it's logic
This commit is contained in:
parent
8d4d14f4c2
commit
7071a01a8d
1 changed files with 6 additions and 0 deletions
|
|
@ -487,6 +487,7 @@ export default {
|
||||||
selectedMobileFirstAppointment: false,
|
selectedMobileFirstAppointment: false,
|
||||||
selectedMultiLocationAppointment: false,
|
selectedMultiLocationAppointment: false,
|
||||||
calendarLoadingStatus: "none",
|
calendarLoadingStatus: "none",
|
||||||
|
isLoadingMultiLocationPopup: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
|
|
@ -895,6 +896,10 @@ export default {
|
||||||
: false;
|
: false;
|
||||||
},
|
},
|
||||||
isMultiLocationModalOpen() {
|
isMultiLocationModalOpen() {
|
||||||
|
// Only return false if we're done loading the popup
|
||||||
|
if (this.isLoadingMultiLocationPopup) {
|
||||||
|
return true; // Still loading, keep background hidden
|
||||||
|
}
|
||||||
return this.selectableDatesMobile.days && this.selectableDatesInshop.days
|
return this.selectableDatesMobile.days && this.selectableDatesInshop.days
|
||||||
? this.$refs.multiLocationModal?.getIsModalOpen()
|
? this.$refs.multiLocationModal?.getIsModalOpen()
|
||||||
: false;
|
: false;
|
||||||
|
|
@ -2207,6 +2212,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.isLoadingMultiLocationPopup = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
async getFirstAvailableMobileApptByTOD(timeOfDay) {
|
async getFirstAvailableMobileApptByTOD(timeOfDay) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue