WIP add v-if and computed.
This commit is contained in:
parent
b5f180099f
commit
5da20c3cd7
1 changed files with 11 additions and 5 deletions
|
|
@ -45,20 +45,17 @@
|
||||||
v-bind:isDismissible="false" />
|
v-bind:isDismissible="false" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="questions-about-service my-5">
|
<div v-if="hasRecal" class="questions-about-service my-5">
|
||||||
<textBlock
|
<textBlock
|
||||||
v-if="!isInsuranceSelected"
|
|
||||||
cmsWidgetName="QuestionsAboutYourServiceWidget"
|
cmsWidgetName="QuestionsAboutYourServiceWidget"
|
||||||
justifyText="left"
|
justifyText="left"
|
||||||
class="service-questions" />
|
class="service-questions" />
|
||||||
<textBlock
|
<textBlock
|
||||||
v-if="!isInsuranceSelected"
|
|
||||||
cmsWidgetName="CallOrTextWidget"
|
cmsWidgetName="CallOrTextWidget"
|
||||||
justifyText="left" />
|
justifyText="left" />
|
||||||
|
<hr class="my-5" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr class="my-5" />
|
|
||||||
|
|
||||||
<paymentMethodQuestion
|
<paymentMethodQuestion
|
||||||
v-if="!isPiaDisabled"
|
v-if="!isPiaDisabled"
|
||||||
v-model="paymentMethodInternalModel"
|
v-model="paymentMethodInternalModel"
|
||||||
|
|
@ -529,6 +526,15 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
hasRecal() {
|
||||||
|
const recalLineItem = this.$store.getters.order.lineItems.supportingItems.find (
|
||||||
|
(lineItem) => lineItem.partType == partTypeStrings.RECALIBRATION
|
||||||
|
);
|
||||||
|
if (recalLineItem) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
},
|
||||||
damageInfo() {
|
damageInfo() {
|
||||||
return this.$store.getters.damage;
|
return this.$store.getters.damage;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue