| 1 |
import { computed } from 'vue' |
| 2 |
import type { MenuItem } from '@/views/_components/menu/IvyMenuAccordion.vue' |
| 3 |
import { useLabels } from '@/composables/useLabels' |
| 4 |
|
| 5 |
export const templateCategories = computed<MenuItem[]>(() => { |
| 6 |
const { getLabel } = useLabels() |
| 7 |
|
| 8 |
return [ |
| 9 |
{ |
| 10 |
index: 'all', |
| 11 |
label: getLabel('all_templates'), |
| 12 |
}, |
| 13 |
{ |
| 14 |
index: 'favourites', |
| 15 |
label: getLabel('favourites'), |
| 16 |
}, |
| 17 |
{ |
| 18 |
index: 'business-sales', |
| 19 |
label: getLabel('business_sales_forms'), |
| 20 |
subItems: [ |
| 21 |
{ |
| 22 |
index: 'order-forms', |
| 23 |
label: getLabel('order_forms'), |
| 24 |
}, |
| 25 |
{ |
| 26 |
index: 'contact-forms', |
| 27 |
label: getLabel('contact_forms'), |
| 28 |
}, |
| 29 |
], |
| 30 |
}, |
| 31 |
{ |
| 32 |
index: 'requests-approvals', |
| 33 |
label: getLabel('requests_approvals'), |
| 34 |
subItems: [ |
| 35 |
{ |
| 36 |
index: 'maintenance-request', |
| 37 |
label: getLabel('maintenance_request_forms'), |
| 38 |
}, |
| 39 |
{ |
| 40 |
index: 'leave-request', |
| 41 |
label: getLabel('leave_request_forms'), |
| 42 |
}, |
| 43 |
], |
| 44 |
}, |
| 45 |
{ |
| 46 |
index: 'event-booking', |
| 47 |
label: getLabel('event_booking_forms'), |
| 48 |
subItems: [ |
| 49 |
{ |
| 50 |
index: 'event-registration', |
| 51 |
label: getLabel('event_registration_form'), |
| 52 |
}, |
| 53 |
{ |
| 54 |
index: 'booking-forms', |
| 55 |
label: getLabel('booking_forms'), |
| 56 |
}, |
| 57 |
{ |
| 58 |
index: 'waiver-forms', |
| 59 |
label: getLabel('waiver_forms'), |
| 60 |
}, |
| 61 |
], |
| 62 |
}, |
| 63 |
{ |
| 64 |
index: 'consents-releases', |
| 65 |
label: getLabel('consents_releases'), |
| 66 |
subItems: [ |
| 67 |
{ |
| 68 |
index: 'consent-forms', |
| 69 |
label: getLabel('consent_forms'), |
| 70 |
}, |
| 71 |
{ |
| 72 |
index: 'release-forms', |
| 73 |
label: getLabel('release_forms'), |
| 74 |
}, |
| 75 |
], |
| 76 |
}, |
| 77 |
] |
| 78 |
}) |
| 79 |
|