Merge pull request #1213 from Safelite/feature/CSR-1146
CSR-1146 | add in provisionalBooking info to time-slot requests
This commit is contained in:
commit
73aa9da0b8
2 changed files with 9 additions and 11 deletions
|
|
@ -108,7 +108,7 @@ export default {
|
|||
additionalButtonData() {
|
||||
const startDate = new Date();
|
||||
const endDate = new Date();
|
||||
endDate.setDate(startDate.getDate() + 7);
|
||||
endDate.setDate(startDate.getDate() + 6);
|
||||
|
||||
const formattedStartDate = startDate.toISOString().split("T")[0];
|
||||
const formattedEndDate = endDate.toISOString().split("T")[0];
|
||||
|
|
|
|||
|
|
@ -1255,11 +1255,10 @@ export const actions = {
|
|||
additionalAuthFlag: "",
|
||||
},
|
||||
partSelection: {
|
||||
// TODO: Provisional booking will utilize these fields
|
||||
hasAnsweredPartQuestions: false,
|
||||
hasAnsweredMoldingQuestions: false,
|
||||
hasAnsweredCapabilityQuestions: false,
|
||||
hasManuallySelectedParts: false,
|
||||
hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers,
|
||||
hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers,
|
||||
hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers,
|
||||
hasManuallySelectedParts: !!context.state.applicationUser.pageData["vehicle-parts"],
|
||||
},
|
||||
vehicle: {
|
||||
year: vehicle.year,
|
||||
|
|
@ -1308,11 +1307,10 @@ export const actions = {
|
|||
additionalAuthFlag: "",
|
||||
},
|
||||
partSelection: {
|
||||
// TODO: Provisional booking will utilize these fields
|
||||
hasAnsweredPartQuestions: false,
|
||||
hasAnsweredMoldingQuestions: false,
|
||||
hasAnsweredCapabilityQuestions: false,
|
||||
hasManuallySelectedParts: false,
|
||||
hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers,
|
||||
hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers,
|
||||
hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers,
|
||||
hasManuallySelectedParts: !!context.state.applicationUser.pageData["vehicle-parts"],
|
||||
},
|
||||
vehicle: {
|
||||
year: vehicle.year,
|
||||
|
|
|
|||
Loading…
Reference in a new issue