Merge pull request #1300 from Safelite/rlsmerge/2026.07.16-to-develop3
Rlsmerge/2026.07.16 to develop3
This commit is contained in:
commit
dc570b3d4f
2 changed files with 4 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
// Import Other Supporting Files
|
// Import Other Supporting Files
|
||||||
import { useMainStore } from '@/store';
|
import { useMainStore } from '@/store';
|
||||||
|
import { experimentSettings } from '@/constants/experiments';
|
||||||
import vinLookupMethodSelections from '@/constants/vin-lookup-methods';
|
import vinLookupMethodSelections from '@/constants/vin-lookup-methods';
|
||||||
import settleAllPromises from '@/helpers/layout-helper';
|
import settleAllPromises from '@/helpers/layout-helper';
|
||||||
import globalRules from '@/constants/global-rules';
|
import globalRules from '@/constants/global-rules';
|
||||||
|
|
@ -66,8 +67,9 @@ export default {
|
||||||
answers.splice(homeAddressIndex, 1);
|
answers.splice(homeAddressIndex, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
|
||||||
const isVinRequired = useMainStore().order.vehicle.vinRequired;
|
const isVinRequired = useMainStore().order.vehicle.vinRequired;
|
||||||
if (isVinRequired) {
|
if (isVinRequired && ymmsBailoutEnabled) {
|
||||||
const vinIndex = answers.findIndex(answer => answer.Name === vinLookupMethodSelections.NOVIN);
|
const vinIndex = answers.findIndex(answer => answer.Name === vinLookupMethodSelections.NOVIN);
|
||||||
if (vinIndex >= 0) {
|
if (vinIndex >= 0) {
|
||||||
answers.splice(vinIndex, 1);
|
answers.splice(vinIndex, 1);
|
||||||
|
|
|
||||||
|
|
@ -179,6 +179,7 @@ export default {
|
||||||
|
|
||||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
|
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
|
||||||
if (ymmsBailoutEnabled && this.mainStore.order.vehicle.vinRequired) {
|
if (ymmsBailoutEnabled && this.mainStore.order.vehicle.vinRequired) {
|
||||||
|
this.mainStore.order.vehicle.vin = this.vin;
|
||||||
this.mainStore.setBailout(bailoutMessage.YMMNotFound());
|
this.mainStore.setBailout(bailoutMessage.YMMNotFound());
|
||||||
return this.$router.navigate(
|
return this.$router.navigate(
|
||||||
this.navigationScenarios.BAILOUT,
|
this.navigationScenarios.BAILOUT,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue