diff --git a/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js b/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js index d69dc3d40..53f4e5797 100644 --- a/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js +++ b/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js @@ -82,5 +82,4 @@ export async function getAvailabilityRating(providerNumber, startDate, endDate, const shopStatus = isGoodAvailability ? "Good" : "Low"; return Promise.resolve(shopStatus); - } diff --git a/src/layouts/service-location/shop-question/shop-list-button/shop-list-button.vue b/src/layouts/service-location/shop-question/shop-list-button/shop-list-button.vue index 1f0d9688a..016477d9d 100644 --- a/src/layouts/service-location/shop-question/shop-list-button/shop-list-button.vue +++ b/src/layouts/service-location/shop-question/shop-list-button/shop-list-button.vue @@ -3,7 +3,7 @@ + v-model="selectedValue">
@@ -15,9 +15,11 @@ buttonLabelSubCopy }}
- {{ buttonAuxillaryCopy }} + class="availability-indicator rounded-pill" + :class="availabilityRating === 'Good' ? 'green' : 'red'"> +
 
+ {{ availabilityRating == 'Good' ? "Appts available" : "Appts low" }} +
{{ screenReaderOnlyText }} - +
@@ -53,14 +53,17 @@ export default { }, mounted() { this.displayLoader(); - console.log(this.additionalButtonData) - }, - updated() { - this.isLoaderDisplayed = false + this.additionalButtonData.availabilityRatingCallback(this.modelValue) + .then((data) => { + this.availabilityRating = data; + //this.isLoaderDisplayed = false; + }) }, data() { return { isLoaderDisplayed: false, + badgeText: "", + availabilityRating: "" }; }, methods: { @@ -81,9 +84,7 @@ export default {