Ready for unit tests
This commit is contained in:
parent
c07b620a2f
commit
5bf1a416a5
2 changed files with 6 additions and 7 deletions
|
|
@ -20,8 +20,8 @@
|
||||||
alertClass="alert-warning" />
|
alertClass="alert-warning" />
|
||||||
<alert
|
<alert
|
||||||
class="my-4"
|
class="my-4"
|
||||||
cmsWidgetName="AlertNoServiceWarningWidget"
|
cmsWidgetName="AlertNoShopsWidget"
|
||||||
v-if="displayNoServiceWarningAlert"
|
v-if="displayNoShopsAlert"
|
||||||
alertClass="alert-warning" />
|
alertClass="alert-warning" />
|
||||||
<appointmentTypeQuestion
|
<appointmentTypeQuestion
|
||||||
v-model="selectedAppointmentType"
|
v-model="selectedAppointmentType"
|
||||||
|
|
@ -145,7 +145,6 @@ export default {
|
||||||
// Call the "next" function to complete the transition to this page.
|
// Call the "next" function to complete the transition to this page.
|
||||||
next((vm) => {
|
next((vm) => {
|
||||||
vm.setCmsContent(resultMap.cmsContent);
|
vm.setCmsContent(resultMap.cmsContent);
|
||||||
console.log(resultMap.serviceabilityDetails);
|
|
||||||
vm.setData(
|
vm.setData(
|
||||||
resultMap.zipCodeData,
|
resultMap.zipCodeData,
|
||||||
resultMap.serviceabilityDetails,
|
resultMap.serviceabilityDetails,
|
||||||
|
|
@ -201,7 +200,7 @@ export default {
|
||||||
|
|
||||||
return this.zipContainsMilitaryBase && isZipServiceableMobile;
|
return this.zipContainsMilitaryBase && isZipServiceableMobile;
|
||||||
},
|
},
|
||||||
displayNoServiceWarningAlert() {
|
displayNoShopsAlert() {
|
||||||
let mobileAvailable;
|
let mobileAvailable;
|
||||||
if (this.IsRecalibrationServiceableMobile == null) {
|
if (this.IsRecalibrationServiceableMobile == null) {
|
||||||
mobileAvailable = this.isGlassServiceableMobile;
|
mobileAvailable = this.isGlassServiceableMobile;
|
||||||
|
|
@ -213,7 +212,7 @@ export default {
|
||||||
const inshopAvailable =
|
const inshopAvailable =
|
||||||
this.isGlassServiceableInshop && this.isRecalibrationServiceableInshop;
|
this.isGlassServiceableInshop && this.isRecalibrationServiceableInshop;
|
||||||
|
|
||||||
return inshopAvailable && !mobileAvailable;
|
return !inshopAvailable && !mobileAvailable;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -931,10 +931,10 @@ export const actions = {
|
||||||
return globalMethods.callMockHttpClient({
|
return globalMethods.callMockHttpClient({
|
||||||
method: endpoints.GetServiceabilityDetails.method,
|
method: endpoints.GetServiceabilityDetails.method,
|
||||||
//TODO: Remove Mocky Endpoints
|
//TODO: Remove Mocky Endpoints
|
||||||
//endpoint: "https://run.mocky.io/v3/59e1a644-cf16-4f08-8069-1ab2a1e38f79", // NoShopsAvailable
|
endpoint: "https://run.mocky.io/v3/59e1a644-cf16-4f08-8069-1ab2a1e38f79", // NoShopsAvailable
|
||||||
//endpoint: "https://run.mocky.io/v3/4fe1fb89-dd56-4e4a-9af2-96bd1ab77847", // ForcedInshop
|
//endpoint: "https://run.mocky.io/v3/4fe1fb89-dd56-4e4a-9af2-96bd1ab77847", // ForcedInshop
|
||||||
//endpoint: "https://run.mocky.io/v3/e2eaa097-6ea5-4906-af53-901edaa94939", // ForcedMobile
|
//endpoint: "https://run.mocky.io/v3/e2eaa097-6ea5-4906-af53-901edaa94939", // ForcedMobile
|
||||||
endpoint: "https://run.mocky.io/v3/1811a1fe-12a7-48f3-939e-d10a9b77dd25", // All Options
|
//endpoint: "https://run.mocky.io/v3/1811a1fe-12a7-48f3-939e-d10a9b77dd25", // All Options
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: Restore this when CSR-1104 is 100% complete
|
// TODO: Restore this when CSR-1104 is 100% complete
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue