bailout addded to navigatewithsingle
and a copilot suggestion
This commit is contained in:
parent
9f32e9df51
commit
0dafce88a3
2 changed files with 7 additions and 2 deletions
|
|
@ -11,8 +11,9 @@ export function hasYMMExperimentPageSettingEnabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function hasYMMExperimentSettingEnabled() {
|
export function hasYMMExperimentSettingEnabled() {
|
||||||
return experimentMixin.methods.hasSettingEqualTo(experimentSettings.ISS_YMMS_VIN_REQUIRED_PAGE_ENABLED, 'true')
|
return ymmIsVinRequired()
|
||||||
|| experimentMixin.methods.hasSettingEqualTo(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED, 'true');
|
&& (experimentMixin.methods.hasSettingEqualTo(experimentSettings.ISS_YMMS_VIN_REQUIRED_PAGE_ENABLED, 'true')
|
||||||
|
|| experimentMixin.methods.hasSettingEqualTo(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED, 'true'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function ymmIsVinRequired() {
|
function ymmIsVinRequired() {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,10 @@ export default {
|
||||||
let result;
|
let result;
|
||||||
if (this.mainStore.order.vehicle.vinRequired) {
|
if (this.mainStore.order.vehicle.vinRequired) {
|
||||||
result = await useMainStore().getPartsOrQuestionsV2();
|
result = await useMainStore().getPartsOrQuestionsV2();
|
||||||
|
if (result.data.partsOrQuestions.length === 0) {
|
||||||
|
this.navigateBailout(bailoutMessage.YMMNotFound('No Parts Returned'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
result = await useMainStore().getPartsOrQuestions();
|
result = await useMainStore().getPartsOrQuestions();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue