mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-17 01:09:33 +00:00
- fixed reservation bug without a room - added KW search to the course picker - fixed room updates so no assigned rooms are lost
49 lines
1.0 KiB
JavaScript
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
|
|
},
|
|
]
|
|
}));
|
|
} |