Tweaks
This commit is contained in:
parent
037fedaadc
commit
6ffe811336
3 changed files with 1 additions and 15 deletions
|
|
@ -140,7 +140,6 @@ function processPageData(baseResponse, clientResponse) {
|
||||||
|
|
||||||
widgets.forEach((widget) => {
|
widgets.forEach((widget) => {
|
||||||
// Global state value replacement.
|
// Global state value replacement.
|
||||||
console.log(widget);
|
|
||||||
const widgetWithReplacements = findAndReplaceGlobalStateValues(widget.Model, widget.Name);
|
const widgetWithReplacements = findAndReplaceGlobalStateValues(widget.Model, widget.Name);
|
||||||
|
|
||||||
// If we already have this widget, push it on the collection
|
// If we already have this widget, push it on the collection
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ export default {
|
||||||
mixins: [BaseFormMixin],
|
mixins: [BaseFormMixin],
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
// Call APIs
|
// Call APIs
|
||||||
const cmsContent = fetchCmsContentForPage(to.query.issPage);
|
const cmsContentPromise = fetchCmsContentForPage(to.query.issPage);
|
||||||
|
|
||||||
// Settle promises and get results
|
// Settle promises and get results
|
||||||
const promiseResultMap = [
|
const promiseResultMap = [
|
||||||
|
|
|
||||||
|
|
@ -306,19 +306,6 @@ export default {
|
||||||
this.navigationScenarios.CLICKED_FORWARD,
|
this.navigationScenarios.CLICKED_FORWARD,
|
||||||
this.$route
|
this.$route
|
||||||
);
|
);
|
||||||
// await submitWorkOrder({ submitType: submitType.SAFELITE }).then(() => {
|
|
||||||
// this.$router.navigate(
|
|
||||||
// this.navigationScenarios.CLICKED_FORWARD,
|
|
||||||
// this.$route
|
|
||||||
// );
|
|
||||||
// }).catch((submitError) => {
|
|
||||||
// useMainStore().setBailout(bailoutMessage.saveSessionError(submitError.data));
|
|
||||||
// this.$router.navigate(
|
|
||||||
// this.navigationScenarios.SAVE_SESSION_FAILED,
|
|
||||||
// this.$route,
|
|
||||||
// { query: { issPage: issPageValues.PAYMENT_METHOD } }
|
|
||||||
// );
|
|
||||||
// });
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
useMainStore().setBailout(bailoutMessage.saveSessionError(submitError.data));
|
useMainStore().setBailout(bailoutMessage.saveSessionError(submitError.data));
|
||||||
this.$router.navigate(
|
this.$router.navigate(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue