commit
This commit is contained in:
parent
7b78fe1e74
commit
97c4ac0a06
1 changed files with 7 additions and 7 deletions
|
|
@ -53,7 +53,7 @@ export default {
|
||||||
});
|
});
|
||||||
return reducedGlassParts;
|
return reducedGlassParts;
|
||||||
},
|
},
|
||||||
comparePageIndices(currentPage, fmgPage) {
|
comparePageIndices(currentPage, issPage) {
|
||||||
const orderedVehicleQuestionPages = [
|
const orderedVehicleQuestionPages = [
|
||||||
issPageValues.PART_QUESTIONS,
|
issPageValues.PART_QUESTIONS,
|
||||||
issPageValues.VEHICLE_PARTS,
|
issPageValues.VEHICLE_PARTS,
|
||||||
|
|
@ -64,14 +64,14 @@ export default {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
orderedVehicleQuestionPages.indexOf(currentPage) -
|
orderedVehicleQuestionPages.indexOf(currentPage) -
|
||||||
orderedVehicleQuestionPages.indexOf(fmgPage)
|
orderedVehicleQuestionPages.indexOf(issPage)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
currentPageComesBeforePage(currentPage = this.$route.query.fmgPage, fmgPage) {
|
currentPageComesBeforePage(currentPage = this.$route.query.issPage, issPage) {
|
||||||
return this.comparePageIndices(currentPage, fmgPage) < 0;
|
return this.comparePageIndices(currentPage, issPage) < 0;
|
||||||
},
|
},
|
||||||
currentPageComesAfterPage(currentPage = this.$route.query.fmgPage, fmgPage) {
|
currentPageComesAfterPage(currentPage = this.$route.query.issPage, issPage) {
|
||||||
return this.comparePageIndices(currentPage, fmgPage) > 0;
|
return this.comparePageIndices(currentPage, issPage) > 0;
|
||||||
},
|
},
|
||||||
setupInitialData(glass, index, alreadyAnsweredQuestions, vm) {
|
setupInitialData(glass, index, alreadyAnsweredQuestions, vm) {
|
||||||
const self = vm ?? this;
|
const self = vm ?? this;
|
||||||
|
|
@ -366,7 +366,7 @@ export default {
|
||||||
// Can't use `this` because navigateForward is also called from vin-pages-mixin
|
// Can't use `this` because navigateForward is also called from vin-pages-mixin
|
||||||
async navigateForward(partsOrQuestions, vm, shouldGoToHeritageQuote) {
|
async navigateForward(partsOrQuestions, vm, shouldGoToHeritageQuote) {
|
||||||
const self = vm ?? this;
|
const self = vm ?? this;
|
||||||
const currentPage = self.$route.query.fmgPage;
|
const currentPage = self.$route.query.issPage;
|
||||||
|
|
||||||
const hasPartQuestions = this.hasPartQuestions(partsOrQuestions);
|
const hasPartQuestions = this.hasPartQuestions(partsOrQuestions);
|
||||||
const hasGlassLocationWithMultipleParts =
|
const hasGlassLocationWithMultipleParts =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue