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",
|
||||
props: {
|
||||
cmsWidgetName: String,
|
||||
schedule: Object,
|
||||
appointmentType: String,
|
||||
},
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import reviewBlock from "@/layouts/review/review-block/review-block";
|
|||
import { AppointmentTypeStrings } from "@/constants/schedule-constants";
|
||||
|
||||
export default {
|
||||
name: "service-package-review",
|
||||
name: "service-location-review",
|
||||
props: {
|
||||
cmsWidgetName: String,
|
||||
serviceLocation: Object,
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@
|
|||
|
||||
<scheduleReview
|
||||
cmsWidgetName="ScheduleWidget"
|
||||
:schedule="scheduleInfo"
|
||||
:appointmentType="appointmentType"
|
||||
@edit-clicked="editSchedule" />
|
||||
</div>
|
||||
|
|
@ -106,19 +105,12 @@ import scheduleReview from "@/layouts/review/review-sections/schedule-review/sch
|
|||
|
||||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||
import baseMixin from "@/mixins/base-mixin.js";
|
||||
import { storeActions } from "@/constants/store-actions";
|
||||
|
||||
export default {
|
||||
name: "review",
|
||||
async beforeRouteEnter(to, from, next) {
|
||||
// Call APIs
|
||||
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();
|
||||
|
||||
|
|
@ -207,9 +199,6 @@ export default {
|
|||
appointmentType() {
|
||||
return this.$store.getters.order.serviceLocation.appointmentType;
|
||||
},
|
||||
scheduleInfo() {
|
||||
return this.$store.getters.order.schedule;
|
||||
},
|
||||
exposeCms() {
|
||||
return this.$root.cmsContentByWidget;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue