moved lookupVinByPlate to store
This commit is contained in:
parent
546915e39c
commit
be1c078d58
2 changed files with 22 additions and 20 deletions
|
|
@ -137,26 +137,7 @@ export default {
|
||||||
|
|
||||||
// Continue
|
// Continue
|
||||||
},
|
},
|
||||||
async lookupVinByPlate(licensePlate) {
|
|
||||||
try {
|
|
||||||
const response = await globalMethods.callHttpClient({
|
|
||||||
method: endpoints.LookupVinByPlate.method,
|
|
||||||
endpoint: endpoints.LookupVinByPlate.url,
|
|
||||||
payload: {
|
|
||||||
licensePlate,
|
|
||||||
licenseState: "IL" // hard coded until Welcome Page is complete and license state can be pulled from store
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
return response;
|
|
||||||
} catch (responseError) {
|
|
||||||
return {
|
|
||||||
error: {
|
|
||||||
status: responseError.status,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
},
|
|
||||||
resetActiveAlert() {
|
resetActiveAlert() {
|
||||||
this.activeVehicleLookupAlertType = null;
|
this.activeVehicleLookupAlertType = null;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -232,6 +232,27 @@ export const useMainStore = defineStore({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async lookupVinByPlate(licensePlate) {
|
||||||
|
try {
|
||||||
|
const response = await globalMethods.callHttpClient({
|
||||||
|
method: endpoints.LookupVinByPlate.method,
|
||||||
|
endpoint: endpoints.LookupVinByPlate.url,
|
||||||
|
payload: {
|
||||||
|
licensePlate,
|
||||||
|
licenseState: "IL" // hard coded until Welcome Page is complete and license state can be pulled from store
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
return response;
|
||||||
|
} catch (responseError) {
|
||||||
|
return {
|
||||||
|
error: {
|
||||||
|
status: responseError.status,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// PartsOrQuestions API Actions
|
// PartsOrQuestions API Actions
|
||||||
async getPartsOrQuestions() {
|
async getPartsOrQuestions() {
|
||||||
const vehicle = this.vehicle;
|
const vehicle = this.vehicle;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue