SSR-1377 PR Changes
This commit is contained in:
parent
67133af6fc
commit
bea5075656
5 changed files with 5 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
const submitType = Object.freeze({
|
||||
REFERRAL: 0,
|
||||
SAFELITE: 0,
|
||||
TPA: 1
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -54,9 +54,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
getUnmatchedVehicleIcon() {
|
||||
const category = this.mainStore.hasSubmittedOrder()
|
||||
? this.mainStore.submittedOrder.vehicle.category
|
||||
: this.mainStore.order.vehicle.category;
|
||||
const category = this.mainStore.submittedOrder?.vehicle.category ?? this.mainStore.order.vehicle.category;
|
||||
switch (category) {
|
||||
case this.vehicleCategories.CAR:
|
||||
return this.carUnmatchedVehicleIcon;
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ export default {
|
|||
},
|
||||
mixins: [BaseFormMixin],
|
||||
async beforeRouteEnter(to, from, next) {
|
||||
useMainStore().createSubmittedOrder(submitType.REFERRAL);
|
||||
useMainStore().createSubmittedOrder(submitType.SAFELITE);
|
||||
// Call APIs
|
||||
const cmsContentPromise = fetchCmsContentForPage(to.query.issPage);
|
||||
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ export default {
|
|||
}
|
||||
|
||||
showIssLoadingModal(false);
|
||||
useMainStore().createSubmittedOrder(submitType.REFERRAL);
|
||||
useMainStore().createSubmittedOrder(submitType.SAFELITE);
|
||||
this.$router.navigate(
|
||||
this.navigationScenarios.PAY_IN_ADVANCE_SUCCESS,
|
||||
this.$route
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ async function GoToConfirmationPage(next, order) {
|
|||
|
||||
function getConfirmationPageFromOrder(order) {
|
||||
switch (order.submitType) {
|
||||
case submitType.REFERRAL:
|
||||
case submitType.SAFELITE:
|
||||
return issPageValues.ORDER_CONFIRMATION;
|
||||
case submitType.TPA:
|
||||
return issPageValues.TPA_CONFIRMATION;
|
||||
|
|
|
|||
Loading…
Reference in a new issue