mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-14 21:42:16 +00:00
44 lines
943 B
JavaScript
44 lines
943 B
JavaScript
export function useContextMenuActions(handlers)
|
|
{
|
|
return Vue.computed(() => ({
|
|
lehreinheit: [
|
|
{
|
|
label: 'Raumauswahl',
|
|
icon: 'fa-solid fa-door-open',
|
|
action: handlers.openRaumauswahl
|
|
},
|
|
{
|
|
label: 'Ressourcen zuordnen',
|
|
icon: 'fa-solid fa-table-list',
|
|
action: handlers.openResourcesAssignmentModal
|
|
},
|
|
{
|
|
label: 'Freischalten für Voransicht',
|
|
icon: 'fa-solid fa-chalkboard-user',
|
|
action: handlers.syncToLecturer
|
|
},
|
|
{
|
|
label: 'Freischalten für Live',
|
|
icon: 'fa-solid fa-user-graduate',
|
|
action: handlers.syncToStudent
|
|
},
|
|
{
|
|
label: 'History',
|
|
icon: 'fa-solid fa-clock-rotate-left',
|
|
action: handlers.openHistory
|
|
},
|
|
{
|
|
label: 'Delete',
|
|
icon: 'fa-solid fa-calendar-xmark',
|
|
action: handlers.deleteEntry
|
|
},
|
|
],
|
|
reservierung: [
|
|
{
|
|
label: 'Delete',
|
|
icon: 'fa-solid fa-calendar-xmark',
|
|
action: handlers.deleteEntry
|
|
},
|
|
]
|
|
}));
|
|
} |