CSR-110: refactoring per PR review
This commit is contained in:
parent
7badd9f18e
commit
e31f415aa4
1 changed files with 3 additions and 5 deletions
|
|
@ -141,11 +141,9 @@ export default {
|
||||||
// call API parts method
|
// call API parts method
|
||||||
const partsLookup = await this.dispatchStoreAction(storeActions.GET_PARTS)
|
const partsLookup = await this.dispatchStoreAction(storeActions.GET_PARTS)
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.$refs.funnelFooter.removeLoader();
|
return this.$refs.funnelFooter.removeLoader();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!partsLookup) { return }
|
|
||||||
|
|
||||||
const glassNameAndPartsForStore = partsLookup.data.glassNameAndPartsForStore;
|
const glassNameAndPartsForStore = partsLookup.data.glassNameAndPartsForStore;
|
||||||
|
|
||||||
console.log("glassNameAndPartsForStore: ", glassNameAndPartsForStore);
|
console.log("glassNameAndPartsForStore: ", glassNameAndPartsForStore);
|
||||||
|
|
@ -236,11 +234,11 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (!hasMultipleParts) {
|
if (!hasMultipleParts) {
|
||||||
store.commit(storeMutations.UPDATE_GLASS_PARTS, collectedGlassParts);
|
this.$store.commit(storeMutations.UPDATE_GLASS_PARTS, collectedGlassParts);
|
||||||
}
|
}
|
||||||
this.navigateForward(hasMultipleParts, glassNameAndPartsForStore);
|
this.navigateForward(hasMultipleParts, glassNameAndPartsForStore);
|
||||||
},
|
},
|
||||||
async navigateForward(hasMultipleParts, glassNameAndPartsForStore) {
|
navigateForward(hasMultipleParts, glassNameAndPartsForStore) {
|
||||||
if (hasMultipleParts) {
|
if (hasMultipleParts) {
|
||||||
// if multiple parts on any glass
|
// if multiple parts on any glass
|
||||||
// go to vehicle-parts page and pass the partsData
|
// go to vehicle-parts page and pass the partsData
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue