Format code.
This commit is contained in:
parent
a0262ed974
commit
c48951cb86
1 changed files with 31 additions and 13 deletions
|
|
@ -5,7 +5,10 @@
|
|||
class="row vin-toggle flex align-items-center pt-4"
|
||||
:class="[isExpanded ? 'expanded' : '']"
|
||||
@click="toggleIsExpanded()">
|
||||
<a aria-label="expand cart" href="#!" class="col d-flex justify-content-between py-0">
|
||||
<a
|
||||
aria-label="expand cart"
|
||||
href="#!"
|
||||
class="col d-flex justify-content-between py-0">
|
||||
<span class="label">{{ amountDueText }}</span>
|
||||
<span class="label amount-due">{{ getFormattedAmount("", amountDue) }}</span>
|
||||
</a>
|
||||
|
|
@ -14,7 +17,7 @@
|
|||
<div class="service-type">
|
||||
<textBlock :cmsWidgetName="servicePackageTitleWidget" />
|
||||
<span tabindex="0">
|
||||
<span class="sr-only">{{screenReaderTotalAmountDueText}}</span>
|
||||
<span class="sr-only">{{ screenReaderTotalAmountDueText }}</span>
|
||||
{{ getFormattedAmount("", packagePrice) }}
|
||||
</span>
|
||||
</div>
|
||||
|
|
@ -61,25 +64,40 @@
|
|||
<span v-else-if="cartItem == recycleFeeCartItem">
|
||||
{{ recycleFeeCartItem.name }}
|
||||
</span>
|
||||
<span tabindex="0"><span class="sr-only">{{screenReaderRecycleFeeText}}</span>{{ getFormattedAmount(cartItem.category, cartItem.subTotal) }}</span>
|
||||
<span tabindex="0"
|
||||
><span class="sr-only">{{ screenReaderRecycleFeeText }}</span
|
||||
>{{ getFormattedAmount(cartItem.category, cartItem.subTotal) }}</span
|
||||
>
|
||||
</div>
|
||||
|
||||
<!-- Sub total, sales tax, total columns -->
|
||||
<div class="sub-total">
|
||||
<span>{{ subtotalText }}</span
|
||||
><span tabindex="0"><span class="sr-only">{{screenReaderSubTotalText}}</span>{{ getFormattedAmount("", subTotal) }}</span>
|
||||
><span tabindex="0"
|
||||
><span class="sr-only">{{ screenReaderSubTotalText }}</span
|
||||
>{{ getFormattedAmount("", subTotal) }}</span
|
||||
>
|
||||
</div>
|
||||
<div class="sales-tax">
|
||||
<span>{{ salesTaxText }}</span
|
||||
><span tabindex="0"><span class="sr-only">{{screenReaderSalesTaxText}}</span>{{ getFormattedAmount("", salesTax) }}</span>
|
||||
><span tabindex="0"
|
||||
><span class="sr-only">{{ screenReaderSalesTaxText }}</span
|
||||
>{{ getFormattedAmount("", salesTax) }}</span
|
||||
>
|
||||
</div>
|
||||
<div v-if="showAsPaid" class="amount-paid">
|
||||
<span>{{ amountPaidText }}</span
|
||||
><span tabindex="0"><span class="sr-only">{{screenReaderAmountPaidText}}</span>{{ getFormattedAmount("", amountPaid) }}</span>
|
||||
><span tabindex="0"
|
||||
><span class="sr-only">{{ screenReaderAmountPaidText }}</span
|
||||
>{{ getFormattedAmount("", amountPaid) }}</span
|
||||
>
|
||||
</div>
|
||||
<div class="amount-due">
|
||||
<span>{{ amountDueText }}</span
|
||||
><span tabindex="0"><span class="sr-only">{{screenReaderTotalAmountDueText}}</span>{{ getFormattedAmount("", amountDue) }}</span>
|
||||
><span tabindex="0"
|
||||
><span class="sr-only">{{ screenReaderTotalAmountDueText }}</span
|
||||
>{{ getFormattedAmount("", amountDue) }}</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -193,22 +211,22 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
screenReaderTotalAmountDueText() {
|
||||
return this.getCmsContent("ScreenReaderTotalAmountDueWidget", "Text");
|
||||
return this.getCmsContent("ScreenReaderTotalAmountDueWidget", "Text");
|
||||
},
|
||||
screenReaderRemoveVapsText() {
|
||||
return this.getCmsContent("ScreenReaderRemoveVapsWidget", "Text");
|
||||
return this.getCmsContent("ScreenReaderRemoveVapsWidget", "Text");
|
||||
},
|
||||
screenReaderRecycleFeeText() {
|
||||
return this.getCmsContent("ScreenReaderRecycleFeeWidget", "Text");
|
||||
return this.getCmsContent("ScreenReaderRecycleFeeWidget", "Text");
|
||||
},
|
||||
screenReaderSubTotalText() {
|
||||
return this.getCmsContent("ScreenReaderSubTotalWidget", "Text");
|
||||
return this.getCmsContent("ScreenReaderSubTotalWidget", "Text");
|
||||
},
|
||||
screenReaderAmountPaidText() {
|
||||
return this.getCmsContent("ScreenReaderAmountPaidWidget", "Text");
|
||||
return this.getCmsContent("ScreenReaderAmountPaidWidget", "Text");
|
||||
},
|
||||
screenReaderSalesTaxText() {
|
||||
return this.getCmsContent("ScreenReaderSalesTaxWidget", "Text");
|
||||
return this.getCmsContent("ScreenReaderSalesTaxWidget", "Text");
|
||||
},
|
||||
availableLineItems() {
|
||||
if (!this.lineItems || this.lineItems.length < 1) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue