appointment.js
18 hours ago
appointmentWaitingListOptions.js
18 hours ago
attendee.js
18 hours ago
auth.js
18 hours ago
bookableType.js
18 hours ago
booking.js
18 hours ago
cabinet.js
18 hours ago
cabinetFilters.js
18 hours ago
coupon.js
18 hours ago
customFields.js
18 hours ago
customerInfo.js
18 hours ago
employee.js
18 hours ago
entities.js
18 hours ago
event.js
18 hours ago
eventBooking.js
18 hours ago
eventEntities.js
18 hours ago
eventWaitingListOptions.js
18 hours ago
pagination.js
18 hours ago
params.js
18 hours ago
payment.js
18 hours ago
persons.js
18 hours ago
recurring.js
18 hours ago
shortcodeParams.js
18 hours ago
stepByStepFilters.js
18 hours ago
tickets.js
18 hours ago
recurring.js
72 lines
| 1 | export default { |
| 2 | namespaced: true, |
| 3 | |
| 4 | state: () => ({ |
| 5 | repeatType: 'daily', |
| 6 | repeatInterval: 1, |
| 7 | occurrenceType: 'After', |
| 8 | occurrenceDate: null, |
| 9 | occurrenceCount: 1, |
| 10 | days: [ |
| 11 | { value: 'monday', selected: false }, |
| 12 | { value: 'tuesday', selected: false }, |
| 13 | { value: 'wednesday', selected: false }, |
| 14 | { value: 'thursday', selected: false }, |
| 15 | { value: 'friday', selected: false }, |
| 16 | { value: 'saturday', selected: false }, |
| 17 | { value: 'sunday', selected: false }, |
| 18 | ], |
| 19 | monthly: 0, |
| 20 | }), |
| 21 | |
| 22 | getters: { |
| 23 | getRepeatType(state) { |
| 24 | return state.repeatType |
| 25 | }, |
| 26 | getRepeatInterval(state) { |
| 27 | return state.repeatInterval |
| 28 | }, |
| 29 | getOccurrenceType(state) { |
| 30 | return state.occurrenceType |
| 31 | }, |
| 32 | getOccurrenceDate(state) { |
| 33 | return state.occurrenceDate |
| 34 | }, |
| 35 | getOccurrenceCount(state) { |
| 36 | return state.occurrenceCount |
| 37 | }, |
| 38 | getMonthly(state) { |
| 39 | return state.monthly |
| 40 | }, |
| 41 | getDays(state) { |
| 42 | return state.days |
| 43 | }, |
| 44 | }, |
| 45 | |
| 46 | mutations: { |
| 47 | setRepeatType(state, payload) { |
| 48 | state.repeatType = payload |
| 49 | }, |
| 50 | setRepeatInterval(state, payload) { |
| 51 | state.repeatInterval = payload |
| 52 | }, |
| 53 | setOccurrenceType(state, payload) { |
| 54 | state.occurrenceType = payload |
| 55 | }, |
| 56 | setOccurrenceDate(state, payload) { |
| 57 | state.occurrenceDate = payload |
| 58 | }, |
| 59 | setOccurrenceCount(state, payload) { |
| 60 | state.occurrenceCount = payload |
| 61 | }, |
| 62 | setMonthly(state, payload) { |
| 63 | state.monthly = payload |
| 64 | }, |
| 65 | setDays(state, payload) { |
| 66 | state.days.find((day) => day.value === payload.value).selected = payload.selected |
| 67 | }, |
| 68 | }, |
| 69 | |
| 70 | actions: {}, |
| 71 | } |
| 72 |