CSR-2417 collapse cart on all pages regardless of experiment
except payment.
This commit is contained in:
parent
a9e6b6b4df
commit
4ad6704439
6 changed files with 17 additions and 14 deletions
|
|
@ -199,6 +199,7 @@ export default {
|
|||
shouldHideRecalibration: Boolean,
|
||||
isItac: Boolean,
|
||||
isNoComp: Boolean,
|
||||
isExpandedOnLoad: Boolean,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -217,7 +218,7 @@ export default {
|
|||
this.isExpanded = !this.isExpanded;
|
||||
},
|
||||
updateIsExpandedWithDefault() {
|
||||
this.isExpanded = this.shouldHideRecalibration;
|
||||
this.isExpanded = this.isExpandedOnLoad;
|
||||
},
|
||||
getVapsPrice(packageName) {
|
||||
const vapsItems = this.getVapsCartItemsForSelectedPackage(packageName);
|
||||
|
|
@ -331,9 +332,8 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
isCartReadyToLoad() {
|
||||
var myReturn = this.shouldHideRecalibration !== null;
|
||||
this.updateIsExpandedWithDefault();
|
||||
return myReturn;
|
||||
return this.isExpandedOnLoad !== null;
|
||||
},
|
||||
lineItems: {
|
||||
get: function () {
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@
|
|||
:insuranceCompanyName="insuranceCompanyName"
|
||||
:showInsuranceCoverageAs="showInsuranceCoverageAs"
|
||||
:shouldHideRecalibration="shouldHideRecalibration"
|
||||
:isExpandedOnLoad="false"
|
||||
:isItac="isItac"
|
||||
:isNoComp="isNoComp" />
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
:insuranceCompanyName="insuranceCompanyName"
|
||||
:showInsuranceCoverageAs="showInsuranceCoverageAs"
|
||||
:shouldHideRecalibration="shouldHideRecalibration"
|
||||
:isExpandedOnLoad="false"
|
||||
:isItac="isItac"
|
||||
:isNoComp="isNoComp" />
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,8 @@
|
|||
:insuranceCompanyName="insuranceCompanyName"
|
||||
:showInsuranceCoverageAs="showInsuranceCoverageAs"
|
||||
:isItac="isItac"
|
||||
:isNocomp="isNocomp" />
|
||||
:isNocomp="isNocomp"
|
||||
:isExpandedOnLoad="true" />
|
||||
|
||||
<hr class="mb-5" />
|
||||
|
||||
|
|
|
|||
|
|
@ -429,7 +429,11 @@ export default {
|
|||
},
|
||||
shouldHideRecalibration() {
|
||||
if (this.isInsuranceSelected) return false;
|
||||
return (experimentMixin.methods.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() === "true" && this.isRecalibrationOnOrder);
|
||||
return (
|
||||
experimentMixin.methods
|
||||
.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)
|
||||
?.toLowerCase() === "true" && this.isRecalibrationOnOrder
|
||||
);
|
||||
},
|
||||
showAfterpayBanner() {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -71,15 +71,11 @@ body {
|
|||
|
||||
// Fix "iOS viewport scroll bug" issue on iPhone
|
||||
// where bottom of page is covered by address bar
|
||||
@media only screen
|
||||
and (min-device-width: 375px)
|
||||
and (max-device-width: 812px)
|
||||
and (-webkit-min-device-pixel-ratio: 3)
|
||||
and (orientation: portrait) {
|
||||
.page-container-grouped-styles {
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) {
|
||||
.page-container-grouped-styles {
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
.modal-open {
|
||||
.container-fluid {
|
||||
|
|
|
|||
Loading…
Reference in a new issue