Files
FHC-Core/public/js/composables/Tempus/ContextMenuActions.js
T
ma0048 f907a12d19 - added room selection for reservations
- fixed reservation bug without a room
- added KW search to the course picker
- fixed room updates so no assigned rooms are lost
2026-07-28 09:20:20 +02:00

49 lines
1.0 KiB
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: 'Raumauswahl',
icon: 'fa-solid fa-door-open',
action: handlers.openRaumauswahl
},
{
label: 'Delete',
icon: 'fa-solid fa-calendar-xmark',
action: handlers.deleteEntry
},
]
}));
}