PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.8
Booking for Appointments and Events Calendar – Amelia v2.4.8
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 / views / admin / customize / steps / parts / AppointmentInfoService.vue
ameliabooking / v3 / src / views / admin / customize / steps / parts Last commit date
AddToCalendar.vue 1 month ago AppointmentInfo.vue 2 days ago AppointmentInfoService.vue 1 month ago Calendar.vue 1 month ago CartItemBody.vue 1 month ago CartItemHead.vue 1 month ago CustomerCongratsInfo.vue 1 month ago PackageInfo.vue 1 month ago PackageInfoService.vue 1 month ago PaymentCongratsInfo.vue 1 month ago PaymentPackageInfo.vue 1 month ago
AppointmentInfoService.vue
59 lines
1 <template>
2 <div>
3 <span>{{ labelsDisplay('congrats_date') }}:</span>
4 <span>{{ moment().format('YYYY-MM-DD') }}</span>
5 </div>
6 <div>
7 <span>{{ labelsDisplay('congrats_time') }}:</span>
8 <span>{{ moment().format('hh:mm') }}</span>
9 </div>
10 <div>
11 <span>{{ labelsDisplay('congrats_service') }}:</span>
12 <span>Service 1</span>
13 </div>
14 <div>
15 <span>{{ labelsDisplay('congrats_employee') }}:</span>
16 <span>Jane Doe</span>
17 </div>
18 <div v-if="!licence.isLite && !licence.isStarter">
19 <span>{{ labelsDisplay('congrats_location') }}:</span>
20 <span>Lorem Ipsum, 18</span>
21 </div>
22 </template>
23
24 <script setup>
25 import moment from 'moment'
26 import { computed, inject } from 'vue'
27 import { useReactiveCustomize } from '../../../../../assets/js/admin/useReactiveCustomize.js'
28
29 // * Plugin Licence
30 let licence = inject('licence')
31
32 let langKey = inject('langKey')
33 let amLabels = inject('labels')
34
35 let pageRenderKey = inject('pageRenderKey')
36 const { amCustomize } = useReactiveCustomize()
37
38 // * Label computed function
39 function labelsDisplay(label) {
40 let computedLabel = computed(() => {
41 return amCustomize.value[pageRenderKey.value].congratulations.translations &&
42 amCustomize.value[pageRenderKey.value].congratulations.translations[label] &&
43 amCustomize.value[pageRenderKey.value].congratulations.translations[label][langKey.value]
44 ? amCustomize.value[pageRenderKey.value].congratulations.translations[label][langKey.value]
45 : amLabels[label]
46 })
47
48 return computedLabel.value
49 }
50 </script>
51
52 <script>
53 export default {
54 name: 'AppointmentInfoService',
55 }
56 </script>
57
58 <style lang="scss"></style>
59