mirror of
https://github.com/nfonteyne/octane-website.git
synced 2026-09-03 23:24:48 +02:00
fix: show all upcomming concerts in calendar add url to export the slot
This commit is contained in:
parent
fea5c30d69
commit
16110d8ad3
10 changed files with 227 additions and 89 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue