diff --git a/public/concerts.html b/public/concerts.html index 6f86ede..9708052 100644 --- a/public/concerts.html +++ b/public/concerts.html @@ -29,7 +29,7 @@
- - + +
`; @@ -134,6 +134,7 @@ function renderUpcomingList() { } async function onDeleteUpcoming(id) { + if (!confirm('Supprimer ce concert ? Cette action est irréversible.')) return; try { await api.del(`/api/setlists/${id}`); await loadUpcoming(); diff --git a/public/js/setlistEditor.js b/public/js/setlistEditor.js index cc3397b..bda5ae0 100644 --- a/public/js/setlistEditor.js +++ b/public/js/setlistEditor.js @@ -1,3 +1,8 @@ +// Minimal line-art icons (same style as the theme-toggle icons in nav.js) — +// reused by concerts.js too, both loaded on the same page. +const CONCERT_EDIT_ICON = ''; +const CONCERT_DELETE_ICON = ''; + // Shared setlist editor used by concerts.js for both the "prochain concert" // tab and a past concert's detail view: choose songs from the repertoire, // order them, add per-song notes, mark encore songs, save. Parameterized so @@ -41,8 +46,8 @@ function createSetlistEditor({ ${playlistUrl ? `` : ''}
- - ${allowDelete ? '' : ''} + + ${allowDelete ? `` : ''}
@@ -71,6 +76,7 @@ function createSetlistEditor({ } async function onDelete() { + if (!confirm('Supprimer ce concert ? Cette action est irréversible.')) return; try { await api.del(`/api/setlists/${setlist.id}`); if (onDeleted) onDeleted();