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" />
|
||||
</div>
|
||||
|
||||
<div class="questions-about-service my-5">
|
||||
<div v-if="hasRecal" class="questions-about-service my-5">
|
||||
<textBlock
|
||||
v-if="!isInsuranceSelected"
|
||||
cmsWidgetName="QuestionsAboutYourServiceWidget"
|
||||
justifyText="left"
|
||||
class="service-questions" />
|
||||
<textBlock
|
||||
v-if="!isInsuranceSelected"
|
||||
cmsWidgetName="CallOrTextWidget"
|
||||
justifyText="left" />
|
||||
<hr class="my-5" />
|
||||
</div>
|
||||
|
||||
<hr class="my-5" />
|
||||
|
||||
<paymentMethodQuestion
|
||||
v-if="!isPiaDisabled"
|
||||
v-model="paymentMethodInternalModel"
|
||||
|
|
@ -529,6 +526,15 @@ export default {
|
|||
},
|
||||
},
|
||||
computed: {
|
||||
hasRecal() {
|
||||
const recalLineItem = this.$store.getters.order.lineItems.supportingItems.find (
|
||||
(lineItem) => lineItem.partType == partTypeStrings.RECALIBRATION
|
||||
);
|
||||
if (recalLineItem) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
damageInfo() {
|
||||
return this.$store.getters.damage;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue