Tidying
This commit is contained in:
parent
9a8bdb48bc
commit
c3228fb7a8
1 changed files with 10 additions and 19 deletions
|
|
@ -23,7 +23,7 @@
|
|||
id="cart-deductible-or-base-price"
|
||||
class="cart-item cart-gray">
|
||||
<div
|
||||
v-if="showDeductibleLineItem"
|
||||
v-if="!useMainStore().isNoComp && !useMainStore().policy.isITAC"
|
||||
id="cart-deductible"
|
||||
class="d-flex justify-content-between align-items-center">
|
||||
<span id="deductible-label">{{ deductibleLabel }}</span>
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
<!-- Packaged Cart Items -->
|
||||
<div
|
||||
id="cart-service-package"
|
||||
class="color-darker-gray px-5">
|
||||
class="px-5">
|
||||
<div
|
||||
id="service-package-name"
|
||||
class="py-1 d-flex justify-content-between align-items-center">
|
||||
|
|
@ -60,7 +60,6 @@
|
|||
<span>{{ item?.name ?? '' }}</span>
|
||||
<textLink
|
||||
v-if="!readOnly || !showAsPaid"
|
||||
ref="removeLink"
|
||||
linkType="text"
|
||||
text="Remove"
|
||||
href="javascript:void(0)"
|
||||
|
|
@ -74,10 +73,8 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Nonpackaged Cart Items -->
|
||||
<div
|
||||
id="non-packaged-cart-items"
|
||||
class="">
|
||||
<!-- NonPackaged Cart Items -->
|
||||
<div id="non-packaged-cart-items">
|
||||
<div
|
||||
v-for="(item, i) in nonServicePackageCartItems"
|
||||
:key="i"
|
||||
|
|
@ -99,7 +96,6 @@
|
|||
<div class="px-5">
|
||||
<textLink
|
||||
v-if="item.isRemovable && (!readOnly || !showAsPaid)"
|
||||
ref="removeLink"
|
||||
linkType="text"
|
||||
text="Remove"
|
||||
href="javascript:void(0)"
|
||||
|
|
@ -208,15 +204,12 @@ export default {
|
|||
baseServicePrice() {
|
||||
return getPriceOfLineItems(this.baseServiceLineItems);
|
||||
},
|
||||
showDeductibleLineItem() {
|
||||
return !useMainStore().isNoComp && !useMainStore().policy.isITAC;
|
||||
},
|
||||
isUnverified() {
|
||||
return this.showDeductibleLineItem
|
||||
return !useMainStore().isNoComp && !useMainStore().policy.isITAC
|
||||
&& (this.deductible == null || !useMainStore().isVerifiedCoverageStatus);
|
||||
},
|
||||
subTotal() {
|
||||
const basePrice = this.showDeductibleLineItem
|
||||
const basePrice = !useMainStore().isNoComp && !useMainStore().policy.isITAC
|
||||
? this.deductible
|
||||
: this.baseServicePrice;
|
||||
const nonPackageCartItemsPrice = this.nonServicePackageCartItems.reduce(
|
||||
|
|
@ -373,7 +366,10 @@ export default {
|
|||
this.isExpanded = !this.isExpanded;
|
||||
},
|
||||
getDisplayed(amount, canBeVerifyingCoverage = true) {
|
||||
return canBeVerifyingCoverage && this.isUnverified && this.showDeductibleLineItem
|
||||
return canBeVerifyingCoverage
|
||||
&& this.isUnverified
|
||||
&& !useMainStore().isNoComp
|
||||
&& !useMainStore().policy.isITAC
|
||||
? VERIFYING_COVERAGE
|
||||
: formatAmountInDollars(amount);
|
||||
},
|
||||
|
|
@ -447,11 +443,6 @@ export default {
|
|||
color: $darker-gray;
|
||||
}
|
||||
|
||||
.cart-line-item {
|
||||
padding: 0.25rem 1.5rem;
|
||||
color: $darker-gray;
|
||||
}
|
||||
|
||||
.cart-table {
|
||||
max-height: 0;
|
||||
transition: all 350ms ease-in;
|
||||
|
|
|
|||
Loading…
Reference in a new issue