fix: show all upcomming concerts in calendar add url to export the slot

This commit is contained in:
Nathan FONTEYNE 2026-07-10 15:27:07 +02:00
parent fea5c30d69
commit 16110d8ad3
10 changed files with 227 additions and 89 deletions

View file

@ -169,10 +169,17 @@ function showUpcomingList() {
document.getElementById('next-list-view').style.display = 'block';
}
function showNextDetail(id) {
async function showNextDetail(id) {
document.getElementById('next-list-view').style.display = 'none';
document.getElementById('next-detail-view').style.display = 'block';
let concertHours = { start: '19:00', end: '22:00' };
try {
concertHours = await api.get('/api/calendar/concert-hours');
} catch (err) {
/* fall back to the defaults above */
}
const editor = createSetlistEditor({
containerId: 'next-detail-content',
allSongs,
@ -185,6 +192,8 @@ function showNextDetail(id) {
},
emptyMessage: 'Concert introuvable.',
allowDelete: true,
showAddToCalendar: true,
concertHours,
onDeleted: async () => {
showUpcomingList();
await loadUpcoming();