PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.6
Booking for Appointments and Events Calendar – Amelia v2.4.6
2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / v3 / src / assets / js / common / integrationApple.js
ameliabooking / v3 / src / assets / js / common Last commit date
appointments.js 1 month ago attendees.js 1 month ago colorManipulation.js 1 month ago customer.js 1 month ago date.js 1 month ago defaultCustomize.js 1 month ago employee.js 2 weeks ago events.js 1 month ago formFieldsTemplates.js 1 month ago formatting.js 1 month ago helper.js 2 weeks ago image.js 1 month ago integrationApple.js 1 month ago integrationGoogle.js 1 month ago integrationOutlook.js 1 month ago integrationStripe.js 1 month ago integrationZoom.js 1 month ago licence.js 1 month ago liveAnnouncer.js 1 month ago phone.js 1 month ago pricing.js 1 month ago recurring.js 2 weeks ago responsive.js 1 month ago scrollElements.js 1 month ago settings.js 1 month ago translationsElementPlus.js 1 month ago utilHeaderHeight.js 1 month ago
integrationApple.js
38 lines
1 import httpClient from '../../../plugins/axios'
2 import { ref } from 'vue'
3
4 let isEmployeeConnectedToPersonalAppleCalendar = ref(false)
5
6 function useAppleSync(store) {
7 store.commit('auth/setAppleLoading', true)
8
9 httpClient
10 .get('/apple/calendar-list/' + store.getters['employee/getId'])
11 .then((response) => {
12 store.commit(
13 'auth/setAppleCalendars',
14 response.data.data?.calendarList ? response.data.data.calendarList : [],
15 )
16
17 if (
18 store.getters['auth/getAppleCalendars']
19 .map((i) => i.id)
20 .indexOf(store.getters['employee/getAppleCalendarId']) === -1
21 ) {
22 store.commit('employee/setAppleCalendarId', '')
23 }
24 store.commit('employee/setAppleCalendarId', response.data.data?.appleCalendarId)
25
26 isEmployeeConnectedToPersonalAppleCalendar.value =
27 response.data.data.isEmployeeConnectedToPersonalAppleCalendar
28 })
29 .catch((error) => {
30 console.log(error)
31 })
32 .finally(() => {
33 store.commit('auth/setAppleLoading', false)
34 })
35 }
36
37 export { isEmployeeConnectedToPersonalAppleCalendar, useAppleSync }
38