Misc cleanup
This commit is contained in:
parent
8cd614c4d0
commit
2b16abe50f
3 changed files with 1 additions and 13 deletions
|
|
@ -12,7 +12,6 @@ export default {
|
||||||
name: "schedule-review",
|
name: "schedule-review",
|
||||||
props: {
|
props: {
|
||||||
cmsWidgetName: String,
|
cmsWidgetName: String,
|
||||||
schedule: Object,
|
|
||||||
appointmentType: String,
|
appointmentType: String,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import reviewBlock from "@/layouts/review/review-block/review-block";
|
||||||
import { AppointmentTypeStrings } from "@/constants/schedule-constants";
|
import { AppointmentTypeStrings } from "@/constants/schedule-constants";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "service-package-review",
|
name: "service-location-review",
|
||||||
props: {
|
props: {
|
||||||
cmsWidgetName: String,
|
cmsWidgetName: String,
|
||||||
serviceLocation: Object,
|
serviceLocation: Object,
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,6 @@
|
||||||
|
|
||||||
<scheduleReview
|
<scheduleReview
|
||||||
cmsWidgetName="ScheduleWidget"
|
cmsWidgetName="ScheduleWidget"
|
||||||
:schedule="scheduleInfo"
|
|
||||||
:appointmentType="appointmentType"
|
:appointmentType="appointmentType"
|
||||||
@edit-clicked="editSchedule" />
|
@edit-clicked="editSchedule" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -106,19 +105,12 @@ import scheduleReview from "@/layouts/review/review-sections/schedule-review/sch
|
||||||
|
|
||||||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||||
import baseMixin from "@/mixins/base-mixin.js";
|
|
||||||
import { storeActions } from "@/constants/store-actions";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "review",
|
name: "review",
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
// Call APIs
|
// Call APIs
|
||||||
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
||||||
// Get rain defense and wiper availability for package review section.
|
|
||||||
const wipersPromise = baseMixin.methods.dispatchStoreAction(storeActions.GET_WIPERS);
|
|
||||||
const rainDefensePromise = baseMixin.methods.dispatchStoreAction(
|
|
||||||
storeActions.GET_RAIN_DEFENSE
|
|
||||||
);
|
|
||||||
|
|
||||||
const servicePackageInitialDataPromise = servicePackageReview.methods.loadInitialData();
|
const servicePackageInitialDataPromise = servicePackageReview.methods.loadInitialData();
|
||||||
|
|
||||||
|
|
@ -207,9 +199,6 @@ export default {
|
||||||
appointmentType() {
|
appointmentType() {
|
||||||
return this.$store.getters.order.serviceLocation.appointmentType;
|
return this.$store.getters.order.serviceLocation.appointmentType;
|
||||||
},
|
},
|
||||||
scheduleInfo() {
|
|
||||||
return this.$store.getters.order.schedule;
|
|
||||||
},
|
|
||||||
exposeCms() {
|
exposeCms() {
|
||||||
return this.$root.cmsContentByWidget;
|
return this.$root.cmsContentByWidget;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue