develop / 297 merge
This commit is contained in:
parent
f9ab00986e
commit
ac492e3203
6 changed files with 6 additions and 7 deletions
|
|
@ -10,10 +10,6 @@ export default {
|
|||
AppName: "FixMyGlass",
|
||||
});
|
||||
|
||||
if (endpoint.toLowerCase().includes("/parts/")){
|
||||
apiGatewayUrl = "https://localhost:44335";
|
||||
}
|
||||
|
||||
axios({
|
||||
method: method,
|
||||
url: apiGatewayUrl + endpoint,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ import funnelFooter from "@/common-components/funnel-footer/funnel-footer";
|
|||
// Supporting Files
|
||||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||
import {storeMutations} from "@/constants/store-mutations";
|
||||
import {storeActions} from "@/constants/store-actions";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ import funnelFooter from "@/common-components/funnel-footer/funnel-footer";
|
|||
// Supporting Files
|
||||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||
import {storeMutations} from "@/constants/store-mutations";
|
||||
import {storeActions} from "@/constants/store-actions";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -143,10 +143,8 @@ export default {
|
|||
|
||||
store.commit(this.storeMutations.UPDATE_GLASS_TO_REPLACE, this.selectedGlassToReplace());
|
||||
|
||||
console.log("calling parts");
|
||||
var partsData = await baseMixin.methods.dispatchNonBlockingStoreAction(this.storeActions.GET_PARTS_OR_QUESTIONS,
|
||||
{ carId: store.getters.vehicle.carId, glassArray: this.selectedGlassToReplace()}, false);
|
||||
console.log(partsData);
|
||||
|
||||
this.navigateForward(partsData);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ export default {
|
|||
store.commit(storeMutations.UPDATE_PARTS, matchedParts);
|
||||
|
||||
// Navigate to the next page.
|
||||
|
||||
this.$router.navigateAfterSave(this.navigationScenarios.SELECTED_PARTS, this.$route);
|
||||
}
|
||||
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ const navigationScenarios = {
|
|||
SELECTED_MAKE: "SELECTED_MAKE",
|
||||
SELECTED_STYLE: "SELECTED_STYLE",
|
||||
CLICKED_BACK: "CLICKED_BACK",
|
||||
SELECTED_PARTS: "SELECTED_PARTS",
|
||||
SELECTED_DAMAGE_WITH_SINGLE_PART: "SELECTED_DAMAGE_WITH_SINGLE_PART",
|
||||
SELECTED_DAMAGE_WITH_MULTIPLE_PARTS: "SELECTED_DAMAGE_WITH_MULTIPLE_PARTS",
|
||||
SELECTED_DAMAGE_WITH_PART_QUESTIONS: "SELECTED_DAMAGE_WITH_PART_QUESTIONS"
|
||||
|
|
|
|||
Loading…
Reference in a new issue