Navigating to tpa submit after contact details when appropriate
This commit is contained in:
parent
72b3879c91
commit
deacd58008
3 changed files with 10 additions and 6 deletions
|
|
@ -196,10 +196,10 @@ export default {
|
||||||
notesForTechnician: this.notesForTechnician
|
notesForTechnician: this.notesForTechnician
|
||||||
};
|
};
|
||||||
useMainStore().updateContactInfo(contactInfo);
|
useMainStore().updateContactInfo(contactInfo);
|
||||||
this.$router.navigate(
|
const scenario = useMainStore().order.serviceLocation.IsSafeliteProvider === false
|
||||||
this.navigationScenarios.CLICKED_FORWARD,
|
? this.navigationScenarios.CLICKED_FORWARD_WITH_NON_SAFELITE_SHOP
|
||||||
this.$route
|
: this.navigationScenarios.CLICKED_FORWARD_WITH_SAFELITE_SHOP;
|
||||||
);
|
this.$router.navigate(scenario, this.$route);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@ export default {
|
||||||
return [this.companyName ?? '', displayAddress, displayPhoneNumber];
|
return [this.companyName ?? '', displayAddress, displayPhoneNumber];
|
||||||
},
|
},
|
||||||
getContactInfoLines() {
|
getContactInfoLines() {
|
||||||
const { firstName, lastName, emailAddress, phoneNumber } = useMainStore().order.contactInfo;
|
const { firstName, lastName, emailAddress, phoneNumber } = useMainStore().contactInfo;
|
||||||
return [
|
return [
|
||||||
`${firstName} ${lastName}`,
|
`${firstName} ${lastName}`,
|
||||||
emailAddress ?? '',
|
emailAddress ?? '',
|
||||||
|
|
|
||||||
|
|
@ -581,8 +581,12 @@ const routingTable = () => [
|
||||||
destinationIssPageValue: issPageValues.SCHEDULE_PAGE
|
destinationIssPageValue: issPageValues.SCHEDULE_PAGE
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
scenario: navigationScenarios.CLICKED_FORWARD,
|
scenario: navigationScenarios.CLICKED_FORWARD_WITH_SAFELITE_SHOP,
|
||||||
destinationIssPageValue: issPageValues.SERVICE_PACKAGES
|
destinationIssPageValue: issPageValues.SERVICE_PACKAGES
|
||||||
|
},
|
||||||
|
{
|
||||||
|
scenario: navigationScenarios.CLICKED_FORWARD_WITH_NON_SAFELITE_SHOP,
|
||||||
|
destinationIssPageValue: issPageValues.TPA_SUBMIT
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue