WIP
This commit is contained in:
parent
788dfca3b5
commit
67154e9192
1 changed files with 21 additions and 2 deletions
|
|
@ -16,7 +16,12 @@
|
|||
<alert
|
||||
class="my-4"
|
||||
cmsWidgetName="AlertMilitaryBaseZipWidget"
|
||||
v-if="showMilitaryZipAlert"
|
||||
v-if="displayMilitaryZipAlert"
|
||||
alertClass="alert-warning" />
|
||||
<alert
|
||||
class="my-4"
|
||||
cmsWidgetName="AlertNoServiceWarningWidget"
|
||||
v-if="displayNoServiceWarningAlert"
|
||||
alertClass="alert-warning" />
|
||||
<serviceTypeQuestion
|
||||
v-model="selectedServiceType"
|
||||
|
|
@ -189,12 +194,26 @@ export default {
|
|||
this.mobileLocationValidationField = "isValid";
|
||||
},
|
||||
},
|
||||
showMilitaryZipAlert() {
|
||||
displayMilitaryZipAlert() {
|
||||
const isZipServiceableMobile =
|
||||
this.isGlassServiceableMobile && this.isRecalibrationServiceableMobile;
|
||||
|
||||
return this.zipContainsMilitaryBase && isZipServiceableMobile;
|
||||
},
|
||||
displayNoServiceWarningAlert() {
|
||||
let mobileAvailable;
|
||||
if (this.IsRecalibrationServiceableMobile == null) {
|
||||
mobileAvailable = this.isGlassServiceableMobile;
|
||||
} else {
|
||||
mobileAvailable =
|
||||
this.isGlassServiceableMobile && this.isRecalibrationServiceableMobile;
|
||||
}
|
||||
|
||||
const inshopAvailable =
|
||||
this.isGlassServiceableInshop && this.isRecalibrationServiceableInshop;
|
||||
|
||||
return inshopAvailable && !mobileAvailable;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
arePagePrerequisitesValid() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue