Added conditional in arePagePrerequisitesValid to check if order is repair or has glassParts
This commit is contained in:
parent
e5257d555c
commit
cce84cf0ac
1 changed files with 5 additions and 1 deletions
|
|
@ -51,6 +51,7 @@ import funnelSubHeader from "@/common-components/funnel-sub-header/funnel-sub-he
|
|||
import radioServicePackage from "@/ux-components/radio-service-package/radio-service-package";
|
||||
import cashOrInsuranceQuestion from "./cash-or-insurance-question/cash-or-insurance-question";
|
||||
import textBlock from "@/common-components/text-block/text-block";
|
||||
import store from "@/store";
|
||||
|
||||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||
import { Form } from "vee-validate";
|
||||
|
|
@ -74,7 +75,10 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
arePagePrerequisitesValid() {
|
||||
return true;
|
||||
if (store.getters.order.damage.isRepair || store.getters.order.lineItems.glassParts.length > 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue