Merge pull request #685 from Safelite/feature/CSR-797
Fixed navigation error, we needed to add the 'isSavingNavigation' par…
This commit is contained in:
commit
81fbe7c9ac
2 changed files with 3 additions and 3 deletions
|
|
@ -87,7 +87,7 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
//emulate selecting the vehicle style
|
//emulate selecting the vehicle style
|
||||||
router.overrideNavigation(navigationScenarios.SELECTED_STYLE, to, next);
|
router.overrideNavigation(navigationScenarios.SELECTED_STYLE, to, next, true);
|
||||||
|
|
||||||
} else{
|
} else{
|
||||||
next( (vm) => {
|
next( (vm) => {
|
||||||
|
|
|
||||||
|
|
@ -160,8 +160,8 @@ router.navigateToExternalUrl = (url, optionalQuery = {}) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Use this navigation when you need to call next() explicitly. beforeRouteEnter is a good example.
|
//Use this navigation when you need to call next() explicitly. beforeRouteEnter is a good example.
|
||||||
router.overrideNavigation = (scenario, currentRoute, next, optionalQuery = {}, optionalParams = {}, optionalPageData) => {
|
router.overrideNavigation = (scenario, currentRoute, next, isSavingNavigation, optionalQuery = {}, optionalParams = {}, optionalPageData) => {
|
||||||
router.navigate(scenario, currentRoute, optionalQuery, optionalParams, optionalPageData);
|
navigate(scenario, currentRoute, isSavingNavigation, optionalQuery, optionalParams, optionalPageData);
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue