add to calendar functionality
This commit is contained in:
parent
9c3e364eac
commit
b314138d8c
5 changed files with 22 additions and 22 deletions
|
|
@ -19,7 +19,11 @@ const applicationConfig = Object.freeze({
|
|||
ISS_DEV_CMS_DOMAIN: 'https://digitalisscms.dev.safelite.io',
|
||||
CASH_PARENT_ACCOUNT_NUMBER: 167132,
|
||||
ITAC_FAIR_AND_REASONABLE_BILLTO: '214616', // Lib Mutal FnR BillTo
|
||||
ITAC_CASH_BILLTO: '283393' // Lib Mutal ITAC Cash BillTo
|
||||
ITAC_CASH_BILLTO: '283393', // Lib Mutal ITAC Cash BillTo
|
||||
GOOGLE_CALENDAR: 'https://www.google.com/calendar/render?action=TEMPLATE',
|
||||
YAHOO_CALENDAR: 'https://calendar.yahoo.com/?v=60',
|
||||
OUTLOOK_CALENDAR:
|
||||
'https://outlook.office.com/calendar/deeplink/compose?path=/calendar/action/compose&rru=addevent'
|
||||
});
|
||||
|
||||
export default applicationConfig;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const serviceType = {
|
||||
const serviceType = Object.freeze({
|
||||
REPLACEMENT: 'replacement',
|
||||
REPAIR: 'repair',
|
||||
REPLACEMENT_AND_RECALIBRATION: 'replacement and recalibration'
|
||||
};
|
||||
export default { serviceType };
|
||||
});
|
||||
export default serviceType;
|
||||
|
|
|
|||
|
|
@ -73,7 +73,6 @@ export default {
|
|||
for (let i = 0; i < options.length; i++) {
|
||||
obj[i] = this.getCalendarData(options[i]);
|
||||
}
|
||||
console.log(obj);
|
||||
return obj;
|
||||
}
|
||||
},
|
||||
|
|
@ -88,7 +87,9 @@ export default {
|
|||
return this.getCmsContent(this.mobileWidgetName, 'BodyText');
|
||||
},
|
||||
AddToCalendar_InShop_Subject() {
|
||||
return this.getCmsContent(this.inShopWidgetName, 'HeaderText');
|
||||
const test = this.getCmsContent('AddToCalendar_InShop', 'HeaderText');
|
||||
console.log(test);
|
||||
return test;
|
||||
},
|
||||
AddToCalendar_InShop_Body() {
|
||||
return this.getCmsContent(this.inShopWidgetName, 'BodyText');
|
||||
|
|
@ -287,6 +288,10 @@ export default {
|
|||
const calBody = getCalendarFile(calFile);
|
||||
download('SafeliteAppointment.ics', calBody);
|
||||
}
|
||||
// getInShopAppointmentText() {
|
||||
// const test = this.getCmsContent('AddToCalendar_InShop_TEST', 'Text');
|
||||
// return test;
|
||||
// }
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -111,20 +111,11 @@ export default {
|
|||
this.selectedValue = this.getSelectedCalendarObject(newValue);
|
||||
}
|
||||
},
|
||||
// getCalendarOptionData() {
|
||||
// return this.calendarOptionsData.map((item) => ({
|
||||
// value: item.name,
|
||||
// buttonLabel: item.icon
|
||||
// }));
|
||||
// },
|
||||
getCalendarOptionData() {
|
||||
console.log(this.calendarOptionsData);
|
||||
const calendarOptions = this.calendarOptionsData.map((item) => ({
|
||||
return this.calendarOptionsData.map((item) => ({
|
||||
value: item.name,
|
||||
buttonLabel: item.icon
|
||||
}));
|
||||
|
||||
return calendarOptions;
|
||||
},
|
||||
watch: {
|
||||
modelValue: {
|
||||
|
|
|
|||
|
|
@ -26,12 +26,12 @@
|
|||
<p>{{ appointmentTimeFormatted }}</p>
|
||||
</div>
|
||||
<addToCalendar
|
||||
mobileWidgetName="addToCalendar_Mobile"
|
||||
inShopWidgetName="addToCalendar_InShop"
|
||||
dropOffWidgetName="addToCalendar_DropOff"
|
||||
overnightDropOffWidgetName="addToCalendar_OvernightDropOff"
|
||||
allDayDropOffWidgetName="addToCalendar_AllDayDropOff"
|
||||
sameDayDropOffWidgetName="addToCalendar_SameDayDropOff"
|
||||
mobileWidgetName="AddToCalendar_Mobile"
|
||||
inShopWidgetName="AddToCalendar_InShop"
|
||||
dropOffWidgetName="AddToCalendar_DropOff"
|
||||
overnightDropOffWidgetName="AddToCalendar_OvernightDropOff"
|
||||
allDayDropOffWidgetName="AddToCalendar_AllDayDropOff"
|
||||
sameDayDropOffWidgetName="AddToCalendar_SameDayDropOff"
|
||||
:serviceLocationFullAddress="serviceLocationFullAddress"
|
||||
:providerFullAddress="providerFullAddress"
|
||||
:appointmentType="appointmentType"
|
||||
|
|
|
|||
Loading…
Reference in a new issue