CASH-2417 save lock token on load session to state
CASH-2417 save lock token on load session to state
This commit is contained in:
parent
139714a996
commit
3823054faa
2 changed files with 16 additions and 1 deletions
|
|
@ -101,7 +101,13 @@ export default {
|
|||
return resolve(response);
|
||||
},
|
||||
(error) => {
|
||||
if (endpoint.toLowerCase().includes(endpoints.LogDigitalConsumer.url)) {
|
||||
if (
|
||||
endpoint.toLowerCase().includes(endpoints.LogDigitalConsumer.url) ||
|
||||
endpoint.toLowerCase().includes(endpoints.LogFmgSessionData.url) ||
|
||||
endpoint.toLowerCase().includes(endpoints.LogPageView.url) ||
|
||||
endpoint.toLowerCase().includes(endpoints.LogCustomEvent.url) ||
|
||||
endpoint.toLowerCase().includes(endpoints.LogPartQuestions.url)
|
||||
) {
|
||||
return resolve({ data: null, error: "Ignore errors when logging" });
|
||||
} else {
|
||||
if (logApiCall) {
|
||||
|
|
|
|||
|
|
@ -686,6 +686,15 @@ export const mutations = {
|
|||
state.order.eon = sessionInformation.order.eon;
|
||||
state.order.customerPortalLoginToken = sessionInformation.order.CustomerPortalLoginToken;
|
||||
state.order.isRecalAckOptIn = sessionInformation.order.isRecalAckOptIn;
|
||||
state.order.workOrderId = sessionInformation.order.workOrderId
|
||||
? sessionInformation.order.workOrderId
|
||||
: null;
|
||||
state.order.workOrderNumber = sessionInformation.order.workOrderNumber
|
||||
? sessionInformation.order.workOrderNumber
|
||||
: null;
|
||||
state.order.lockToken = sessionInformation.order.lockToken
|
||||
? sessionInformation.order.lockToken
|
||||
: null;
|
||||
|
||||
if (state.order.vehicle.vin !== sessionInformation.order.vehicle?.vin) {
|
||||
state.applicationUser.pageData[routeData.PART_QUESTIONS.name] = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue