Adding bailout string
This commit is contained in:
parent
d2174d36dc
commit
90fcd1ffa2
1 changed files with 5 additions and 7 deletions
|
|
@ -62,7 +62,7 @@ import { paymentMethods } from '@/constants/payment-method-constants';
|
||||||
import globalRules from '@/constants/global-rules';
|
import globalRules from '@/constants/global-rules';
|
||||||
import { Form } from 'vee-validate';
|
import { Form } from 'vee-validate';
|
||||||
import issPageValues from '@/router/router-constants/issPage-values';
|
import issPageValues from '@/router/router-constants/issPage-values';
|
||||||
|
import bailoutMessage from '@/constants/bailoutMessage';
|
||||||
import { AppointmentTypeStrings } from '@/constants/schedule-constants';
|
import { AppointmentTypeStrings } from '@/constants/schedule-constants';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -113,12 +113,10 @@ export default {
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
useMainStore().setBailout(
|
useMainStore().setBailout(
|
||||||
to,
|
to,
|
||||||
// TODO use bailout message if keeping
|
bailoutMessage.pricingResponseError(
|
||||||
'bailout message'
|
unpricedVaps.map((li) => li.partNumber),
|
||||||
// bailoutMessage.pricingResponseError(
|
{ code: err.code, message: err.message, data: err.data }
|
||||||
// availableLineItems.map((li) => li.partNumber),
|
)
|
||||||
// { code: err.code, message: err.message, data: err.data }
|
|
||||||
// )
|
|
||||||
);
|
);
|
||||||
hasBailedOut = true;
|
hasBailedOut = true;
|
||||||
next(`/?issPage=${issPageValues.BAILOUT_PAGE}`);
|
next(`/?issPage=${issPageValues.BAILOUT_PAGE}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue