admin.js
3 days ago
appointment.js
3 days ago
booking.js
3 days ago
customers.js
3 days ago
event.js
3 days ago
package.js
3 days ago
payment.js
3 days ago
socialAuthOptions.js
3 days ago
status.js
3 days ago
useReactiveCustomize.js
3 days ago
status.js
47 lines
| 1 | import { reactive } from 'vue' |
| 2 | |
| 3 | const globalLabels = reactive(window.wpAmeliaLabels) |
| 4 | |
| 5 | function useStatuses() { |
| 6 | return [ |
| 7 | { |
| 8 | value: 'approved', |
| 9 | label: globalLabels.approved, |
| 10 | icon: 'check', |
| 11 | color: 'var(--am-c-success)', |
| 12 | }, |
| 13 | { |
| 14 | value: 'pending', |
| 15 | label: globalLabels.pending, |
| 16 | icon: 'refresh', |
| 17 | color: 'var(--am-c-warning)', |
| 18 | }, |
| 19 | { |
| 20 | value: 'canceled', |
| 21 | label: globalLabels.canceled, |
| 22 | icon: 'close', |
| 23 | color: 'var(--am-c-error)', |
| 24 | }, |
| 25 | { |
| 26 | value: 'rejected', |
| 27 | label: globalLabels.rejected, |
| 28 | icon: 'info-reverse', |
| 29 | color: 'var(--am-c-main-text)', |
| 30 | }, |
| 31 | { |
| 32 | value: 'waiting', |
| 33 | label: globalLabels.waiting, |
| 34 | icon: 'clock', |
| 35 | color: 'var(--am-c-warning)', |
| 36 | }, |
| 37 | { |
| 38 | value: 'no-show', |
| 39 | label: globalLabels['no-show'], |
| 40 | icon: 'no-show', |
| 41 | color: '#808A90', |
| 42 | }, |
| 43 | ] |
| 44 | } |
| 45 | |
| 46 | export { useStatuses } |
| 47 |