A couple, not all, code review changes
This commit is contained in:
parent
18cc04b2ef
commit
f64b6ad31c
3 changed files with 6 additions and 13 deletions
|
|
@ -79,7 +79,7 @@ import { getHighestFullySatisfiedTier, getPackageContents } from "@/helpers/serv
|
|||
import textLink from "@/ux-components/text-link/text-link";
|
||||
import textBlock from "@/digital-components/text-block/text-block";
|
||||
import { LineItemUtilities } from "@/store";
|
||||
import { deepClone } from "@/helpers/object-helper";
|
||||
|
||||
|
||||
export default {
|
||||
name: "cart",
|
||||
|
|
|
|||
|
|
@ -156,13 +156,6 @@ export default {
|
|||
return answers;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
modelValue: {
|
||||
handler(newValue) {
|
||||
console.log(newValue);
|
||||
},
|
||||
},
|
||||
},
|
||||
components: {
|
||||
buttonQuestion,
|
||||
contentGroupModal,
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ export default {
|
|||
...glassParts,
|
||||
];
|
||||
|
||||
const lineItems = store.getters.order.lineItems;
|
||||
const lineItemsFromStore = store.getters.order.lineItems;
|
||||
|
||||
await baseMixin.methods.dispatchStoreActionWithLogging(
|
||||
storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA,
|
||||
|
|
@ -176,21 +176,21 @@ export default {
|
|||
const lineItemUtilities = new LineItemUtilities();
|
||||
lineItemUtilities.addGuidToLineItemsIfNotAlreadyThere(availableLineItems);
|
||||
|
||||
const cartLineItems = mapTaxedAvailableLineItemsToStoreFormat(
|
||||
const lineItems = mapTaxedAvailableLineItemsToStoreFormat(
|
||||
availableLineItems,
|
||||
lineItems
|
||||
lineItemsFromStore
|
||||
);
|
||||
|
||||
// Call the "next" function to complete the transition to this page.
|
||||
next((vm) => {
|
||||
vm.setCmsContent(resultMap.cmsContent);
|
||||
vm.availableLineItems = taxedAvailableLineItems;
|
||||
vm.cartLineItems = cartLineItems;
|
||||
vm.lineItems = lineItems;
|
||||
});
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
cartLineItems: [],
|
||||
lineItems: [],
|
||||
availableLineItems: [],
|
||||
paymentMethodInternalModel: this.getPaymentMethodFromStore(),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue