From fc753e42532bfb41e990155466c17582e4a0026b Mon Sep 17 00:00:00 2001 From: Michaela Brydon Date: Fri, 27 Oct 2023 15:01:23 -0400 Subject: [PATCH] Troubleshooting --- .../shop-list-button/shop-list-button.vue | 6 +- .../shop-question/shop-question.vue | 1 + src/layouts/tpa-search/tpa-search.vue | 263 +++++++++++------- src/store/index.js | 53 ++-- 4 files changed, 195 insertions(+), 128 deletions(-) diff --git a/src/iss-components/shop-list-button/shop-list-button.vue b/src/iss-components/shop-list-button/shop-list-button.vue index f3b6c922..8367372d 100644 --- a/src/iss-components/shop-list-button/shop-list-button.vue +++ b/src/iss-components/shop-list-button/shop-list-button.vue @@ -67,13 +67,11 @@ export default { mixins: [inputButtonWrapperMixin], data() { return { - availabilityRating: null + availabilityRating: null, + displayAvailabilityIndicator: this.additionalButtonData?.displayAvailabilityIndicators ?? false }; }, computed: { - displayAvailabilityIndicators() { - return true; - }, isLoaderDisplayed() { return this.availabilityRating == null; }, diff --git a/src/layouts/service-location/shop-question/shop-question.vue b/src/layouts/service-location/shop-question/shop-question.vue index 8951ed1e..d5fc9da5 100644 --- a/src/layouts/service-location/shop-question/shop-question.vue +++ b/src/layouts/service-location/shop-question/shop-question.vue @@ -124,6 +124,7 @@ export default { const formattedEndDate = endDate.toISOString().split('T')[0]; return { + displayAvailabilityIndicators: true, availabilityRatingCallback: getAvailabilityRating, startDate: formattedStartDate, endDate: formattedEndDate, diff --git a/src/layouts/tpa-search/tpa-search.vue b/src/layouts/tpa-search/tpa-search.vue index d3a533bb..0495bc71 100644 --- a/src/layouts/tpa-search/tpa-search.vue +++ b/src/layouts/tpa-search/tpa-search.vue @@ -1,98 +1,103 @@