Merge pull request #685 from Safelite/feature/CSR-797

Fixed navigation error, we needed to add the 'isSavingNavigation' par…
This commit is contained in:
Leah Schumann 2022-08-22 08:50:57 -04:00 committed by GitHub
commit 81fbe7c9ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -87,7 +87,7 @@ export default {
});
//emulate selecting the vehicle style
router.overrideNavigation(navigationScenarios.SELECTED_STYLE, to, next);
router.overrideNavigation(navigationScenarios.SELECTED_STYLE, to, next, true);
} else{
next( (vm) => {

View file

@ -160,8 +160,8 @@ router.navigateToExternalUrl = (url, optionalQuery = {}) => {
}
//Use this navigation when you need to call next() explicitly. beforeRouteEnter is a good example.
router.overrideNavigation = (scenario, currentRoute, next, optionalQuery = {}, optionalParams = {}, optionalPageData) => {
router.navigate(scenario, currentRoute, optionalQuery, optionalParams, optionalPageData);
router.overrideNavigation = (scenario, currentRoute, next, isSavingNavigation, optionalQuery = {}, optionalParams = {}, optionalPageData) => {
navigate(scenario, currentRoute, isSavingNavigation, optionalQuery, optionalParams, optionalPageData);
next();
}